Fix Clang warnings.

Change-Id: I9630093a14d0c1b2b6dc60ffb5866c7d2eaf4f02
Reviewed-on: https://swiftshader-review.googlesource.com/4552
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Common/MutexLock.hpp b/src/Common/MutexLock.hpp
index 87defa0..31e5189 100644
--- a/src/Common/MutexLock.hpp
+++ b/src/Common/MutexLock.hpp
@@ -112,10 +112,14 @@
 		}

 

 	private:

-		// Ensure that the mutex variable is on its own 64-byte cache line to avoid false sharing

-		volatile int a[16];

-		volatile int mutex;

-		volatile int b[15];

+		struct

+		{

+			// Ensure that the mutex variable is on its own 64-byte cache line to avoid false sharing

+			// Padding must be public to avoid compiler warnings

+			volatile int padding1[16];

+			volatile int mutex;

+			volatile int padding2[15];

+		};

 	};

 }

 

diff --git a/src/Common/SharedLibrary.hpp b/src/Common/SharedLibrary.hpp
index cdae040..1046d64 100644
--- a/src/Common/SharedLibrary.hpp
+++ b/src/Common/SharedLibrary.hpp
@@ -119,6 +119,7 @@
 		if(!symbol)

 		{

 			const char *reason = dlerror();   // Silence the error

+			(void)reason;

 		}

 

 		return symbol;