Lines 10-16
Link Here
|
10 |
if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") |
10 |
if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") |
11 |
|
11 |
|
12 |
# add -Wconversion ? |
12 |
# add -Wconversion ? |
13 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors") |
13 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") |
14 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement") |
14 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement") |
15 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security") |
15 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security") |
16 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute") |
16 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute") |