Module: Demos Branch: master Commit: a059cfcb3029b92d579b912d1c4d3509a81d9136 URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=a059cfcb3029b92d579b912d1c4d3509a81d9136
Author: José Fonseca <[email protected]> Date: Wed Jun 29 16:22:14 2011 +0100 cmake: Use -Wall and friends on GNU CC. --- CMakeLists.txt | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9cc2a8..dbb3359 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,21 @@ if (X11_FOUND) endif () endif (X11_FOUND) +if (CMAKE_COMPILER_IS_GNUCC) + add_definitions( + -Wall + -Wpointer-arith + -Wstrict-prototypes + -Wmissing-prototypes + -Wmissing-declarations + -Wnested-externs + -fno-strict-aliasing + -Wbad-function-cast + #-Wold-style-definition + #-Wdeclaration-after-statement + ) +endif (CMAKE_COMPILER_IS_GNUCC) + if (WIN32) # Nobody likes to include windows.h: # - Microsoft's GL/gl.h header depends on windows.h but doesn't include it; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
