cmake: -Werror -Wextra -Wno...
authorChia-I Wu <olvaffe@gmail.com>
Sun, 3 Aug 2014 23:31:46 +0000 (07:31 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sun, 3 Aug 2014 23:32:53 +0000 (07:32 +0800)
CMakeLists.txt

index 0d6c7fd6ca365db1191da4d851b15f625d207cc5..453cc61f3e4172ba3854563669899fa3bb3431f5 100644 (file)
@@ -23,7 +23,7 @@ if (NOT LIBDRM_FOUND)
        message(FATAL_ERROR "libdrm not found")
 endif()
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Werror -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter")
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
 include(GetGitRevisionDescription)