aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorIan Elliott <ian@lunarg.com>2015-02-13 14:04:01 -0700
committerIan Elliott <ian@lunarg.com>2015-02-13 16:33:18 -0700
commitf6da0ddd4d4212667ff822576f7cc4e592b63a33 (patch)
treeebce416f7af3234c26a389e099a3458aec105e50 /loader
parent29d47fedf708c0324b5aa6b39fc47bca4cd22f3c (diff)
downloadusermoji-f6da0ddd4d4212667ff822576f7cc4e592b63a33.tar.xz
Enable additional Linux warnings, for loader/layers/demos.
The intention is for Linux developers to catch more problems (real or annoyance) before porting to Windows. The new warnings are: -Wpointer-arith -Wsign-compare These are not used for the Intel sample driver (mostly because the Intel compiler from Mesa3D generates lots of these warnings, which code we don't want to modify), nor for the tests. Not sure how this affects Glave on Linux.
Diffstat (limited to 'loader')
-rw-r--r--loader/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index a4eba041..41fd9891 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -25,7 +25,7 @@ if (WIN32)
target_link_libraries(XGL)
endif()
if (NOT WIN32)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -Wpointer-arith")
add_library(XGL SHARED loader.c dispatch.c table_ops.h)
set_target_properties(XGL PROPERTIES SOVERSION 0)