Browse Source

Fix clang build warnings

Oleg Gerasimov 3 years ago
parent
commit
09c5c31303
3 changed files with 4 additions and 3 deletions
  1. 2 2
      src/gfx_compilers.h
  2. 1 0
      src/gos/gos_osx.h
  3. 1 1
      src/gos/gos_qt.cpp

+ 2 - 2
src/gfx_compilers.h

@@ -335,8 +335,8 @@
335 335
 		#define GFX_COMPILER_TESTED					TRUE
336 336
 		#define GFX_COMPILER_VERSION_MAJOR			(__clang_major__)
337 337
 		#define GFX_COMPILER_VERSION_MINOR			(__clang_minor__)
338
-		#define GFX_COMPILER_VERSION_PATCH			(__clang_patchlevel__)
339
-		#define DEPRECATED(msg)						__attribute__((deprecated(msg)));
338
+        #define GFX_COMPILER_VERSION_PATCH			(__clang_patchlevel__)
339
+		#define DEPRECATED(msg)						__attribute__((deprecated(msg)))
340 340
 	#elif GFX_COMPILER == GFX_COMPILER_COMEAU
341 341
 		#define GFX_COMPILER_NAME					"Comeau C++"
342 342
 		#define GFX_COMPILER_VERSION_MAJOR			((__COMO_VERSION__)/100)

+ 1 - 0
src/gos/gos_osx.h

@@ -13,6 +13,7 @@
13 13
 #include <sys/types.h>
14 14
 #include <stdint.h>
15 15
 #include <pthread.h>
16
+#include <stdlib.h>
16 17
 
17 18
 /* Already defined int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, size_t */
18 19
 

+ 1 - 1
src/gos/gos_qt.cpp

@@ -7,12 +7,12 @@
7 7
 
8 8
 #include "../../gfx.h"
9 9
 
10
+#if GFX_USE_OS_QT
10 11
 #include <QMutex>
11 12
 #include <QSemaphore>
12 13
 #include <QThread>
13 14
 #include <QElapsedTimer>
14 15
 
15
-#if GFX_USE_OS_QT
16 16
 
17 17
 class Thread : public QThread
18 18
 {