From bfd33ecf297f97bb4fcfd12f957d9aa7f0bf88f3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Sep 2018 08:00:19 +0200 Subject: cmake: Use -Wpedantic and remove -pedantic-errors We get -Werror if -DPICKY_DEVELOPER=ON is set. Signed-off-by: Andreas Schneider --- CompilerChecks.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'CompilerChecks.cmake') diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake index 2cbd00f5..4d5ef027 100644 --- a/CompilerChecks.cmake +++ b/CompilerChecks.cmake @@ -17,8 +17,7 @@ if (UNIX) endif() add_c_compiler_flag("-std=gnu99" SUPPORTED_COMPILER_FLAGS) - add_c_compiler_flag("-pedantic" SUPPORTED_COMPILER_FLAGS) - add_c_compiler_flag("-pedantic-errors" SUPPORTED_COMPILER_FLAGS) + add_c_compiler_flag("-Wpedantic" SUPPORTED_COMPILER_FLAGS) add_c_compiler_flag("-Wall" SUPPORTED_COMPILER_FLAGS) add_c_compiler_flag("-Wshadow" SUPPORTED_COMPILER_FLAGS) add_c_compiler_flag("-Wmissing-prototypes" SUPPORTED_COMPILER_FLAGS) -- cgit v1.2.1