summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-15 16:23:59 -0400
committerrealtradam <[email protected]>2023-05-15 16:23:59 -0400
commit5e935512696c55b5005e997cfc4dab88ecdf8141 (patch)
tree40f81316f6d41b3854e3ab709f48a40f891148c4
parente81eb2369cbf21ca66fc49d2d09aab270131ea87 (diff)
downloadRodeoKit-5e935512696c55b5005e997cfc4dab88ecdf8141.tar.gz
RodeoKit-5e935512696c55b5005e997cfc4dab88ecdf8141.zip
extra flags
-rw-r--r--CMakeLists.txt10
-rw-r--r--include/compile_flags.txt9
-rw-r--r--src/compile_flags.txt10
3 files changed, 28 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fe7c04..6cd566d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,6 +107,16 @@ if(${CMAKE_BUILD_TYPE} EQUAL Debug)
PRIVATE -Wpedantic
#PRIVATE -Werror
PRIVATE -Wconversion
+ PRIVATE -Wconversion
+ PRIVATE -Wformat=2
+ PRIVATE -Wno-unused-parameter
+ PRIVATE -Wshadow
+ PRIVATE -Wwrite-strings
+ PRIVATE -Wstrict-prototypes
+ PRIVATE -Wold-style-definition
+ PRIVATE -Wredundant-decls
+ PRIVATE -Wnested-externs
+ PRIVATE -Wmissing-include-dirs
PUBLIC -fsanitize=address,undefined,leak
)
target_link_options(${PROJECT_NAME}
diff --git a/include/compile_flags.txt b/include/compile_flags.txt
index 26d1cc4..668f22f 100644
--- a/include/compile_flags.txt
+++ b/include/compile_flags.txt
@@ -9,4 +9,13 @@
-Wextra
-Wpedantic
-Wconversion
+-Wformat=2
+-Wno-unused-parameter
+-Wshadow
+-Wwrite-strings
+-Wstrict-prototypes
+-Wold-style-definition
+-Wredundant-decls
+-Wnested-externs
+-Wmissing-include-dirs
-std=c99
diff --git a/src/compile_flags.txt b/src/compile_flags.txt
index 29708f7..7a756f9 100644
--- a/src/compile_flags.txt
+++ b/src/compile_flags.txt
@@ -12,6 +12,14 @@
-Wextra
-Wpedantic
-Wconversion
--fsanitize=address,undefined
+-Wformat=2
+-Wno-unused-parameter
+-Wshadow
+-Wwrite-strings
+-Wstrict-prototypes
+-Wold-style-definition
+-Wredundant-decls
+-Wnested-externs
+-Wmissing-include-dirs
-std=c99