compatiable for lower cmake

This commit is contained in:
zhengshuxin 2018-10-27 22:21:29 +08:00
parent 687195ad40
commit fb376b2484

View File

@ -13,7 +13,7 @@ add_definitions(
"-std=gnu99" "-std=gnu99"
"-fPIC" "-fPIC"
"-Wall" "-Wall"
"-Werror" # "-Werror"
"-Wshadow" "-Wshadow"
"-Wpointer-arith" "-Wpointer-arith"
"-Waggregate-return" "-Waggregate-return"
@ -25,7 +25,7 @@ add_definitions(
"-Wuninitialized" "-Wuninitialized"
"-D_POSIX_PTHREAD_SEMANTICS" "-D_POSIX_PTHREAD_SEMANTICS"
"-DACL_PREPARE_COMPILE" "-DACL_PREPARE_COMPILE"
"-Wno-invalid-source-encoding" # "-Wno-invalid-source-encoding"
"-Wstrict-prototypes" "-Wstrict-prototypes"
) )