diff options
| author | 3gg <3gg@shellblade.net> | 2026-04-05 15:00:15 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-04-05 15:00:15 -0700 |
| commit | 51cb3dca28db17a1975cc9e04b6c75d2c89715c2 (patch) | |
| tree | 26e03ea266bf8f7f9f0e27126cde9da51335f5dc | |
| parent | c3f868d293a9b63a2bdc74dabdeaec9c4a0dfc5a (diff) | |
Add pedantic
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | error/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | filesystem/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | hash/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | list/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | log/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | mem/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | mempool/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | memstack/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | plugin/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | random/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | timer/CMakeLists.txt | 4 |
12 files changed, 18 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a7ce893..62ee1a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -16,4 +16,5 @@ add_subdirectory(mempool) | |||
| 16 | add_subdirectory(memstack) | 16 | add_subdirectory(memstack) |
| 17 | add_subdirectory(plugin) | 17 | add_subdirectory(plugin) |
| 18 | add_subdirectory(random) | 18 | add_subdirectory(random) |
| 19 | add_subdirectory(simloop) | ||
| 19 | add_subdirectory(timer) | 20 | add_subdirectory(timer) |
diff --git a/error/CMakeLists.txt b/error/CMakeLists.txt index fbbc945..c74921f 100644 --- a/error/CMakeLists.txt +++ b/error/CMakeLists.txt | |||
| @@ -15,4 +15,4 @@ target_include_directories(error PUBLIC | |||
| 15 | target_link_libraries(error | 15 | target_link_libraries(error |
| 16 | cstring) | 16 | cstring) |
| 17 | 17 | ||
| 18 | target_compile_options(error PRIVATE -Wall -Wextra) | 18 | target_compile_options(error PRIVATE -Wall -Wextra -Wpedantic) |
diff --git a/filesystem/CMakeLists.txt b/filesystem/CMakeLists.txt index 508f99d..56cc870 100644 --- a/filesystem/CMakeLists.txt +++ b/filesystem/CMakeLists.txt | |||
| @@ -16,4 +16,4 @@ target_include_directories(filesystem PUBLIC | |||
| 16 | target_link_libraries(filesystem PRIVATE | 16 | target_link_libraries(filesystem PRIVATE |
| 17 | cassert) | 17 | cassert) |
| 18 | 18 | ||
| 19 | target_compile_options(filesystem PRIVATE -Wall -Wextra) | 19 | target_compile_options(filesystem PRIVATE -Wall -Wextra -Wpedantic) |
diff --git a/hash/CMakeLists.txt b/hash/CMakeLists.txt index 8191f25..f0a5e55 100644 --- a/hash/CMakeLists.txt +++ b/hash/CMakeLists.txt | |||
| @@ -11,4 +11,4 @@ add_library(hash | |||
| 11 | 11 | ||
| 12 | target_include_directories(hash PUBLIC include) | 12 | target_include_directories(hash PUBLIC include) |
| 13 | 13 | ||
| 14 | target_compile_options(hash PRIVATE -Wall -Wextra) | 14 | target_compile_options(hash PRIVATE -Wall -Wextra -Wpedantic) |
diff --git a/list/CMakeLists.txt b/list/CMakeLists.txt index 7e1df38..23361cf 100644 --- a/list/CMakeLists.txt +++ b/list/CMakeLists.txt | |||
| @@ -21,4 +21,4 @@ add_executable(list_test | |||
| 21 | target_link_libraries(list_test | 21 | target_link_libraries(list_test |
| 22 | list) | 22 | list) |
| 23 | 23 | ||
| 24 | target_compile_options(list_test PRIVATE -DUNIT_TEST -Wall -Wextra) | 24 | target_compile_options(list_test PRIVATE -DUNIT_TEST -Wall -Wextra -Wpedantic) |
diff --git a/log/CMakeLists.txt b/log/CMakeLists.txt index 615e200..1aa96ee 100644 --- a/log/CMakeLists.txt +++ b/log/CMakeLists.txt | |||
| @@ -12,4 +12,4 @@ add_library(log | |||
| 12 | target_include_directories(log PUBLIC | 12 | target_include_directories(log PUBLIC |
| 13 | include) | 13 | include) |
| 14 | 14 | ||
| 15 | target_compile_options(log PRIVATE -Wall -Wextra) | 15 | target_compile_options(log PRIVATE -Wall -Wextra -Wpedantic) |
diff --git a/mem/CMakeLists.txt b/mem/CMakeLists.txt index 89bf444..d4f065b 100644 --- a/mem/CMakeLists.txt +++ b/mem/CMakeLists.txt | |||
| @@ -18,7 +18,7 @@ target_link_libraries(mem | |||
| 18 | cassert | 18 | cassert |
| 19 | list) | 19 | list) |
| 20 | 20 | ||
| 21 | target_compile_options(mem PRIVATE -Wall -Wextra) | 21 | target_compile_options(mem PRIVATE -Wall -Wextra -Wpedantic) |
| 22 | 22 | ||
| 23 | # Test | 23 | # Test |
| 24 | 24 | ||
| @@ -28,4 +28,4 @@ add_executable(mem_test | |||
| 28 | target_link_libraries(mem_test | 28 | target_link_libraries(mem_test |
| 29 | mem) | 29 | mem) |
| 30 | 30 | ||
| 31 | target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | 31 | target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) |
diff --git a/mempool/CMakeLists.txt b/mempool/CMakeLists.txt index 31ff0e1..d6a9772 100644 --- a/mempool/CMakeLists.txt +++ b/mempool/CMakeLists.txt | |||
| @@ -17,7 +17,7 @@ target_include_directories(mempool PUBLIC | |||
| 17 | target_link_libraries(mempool PRIVATE | 17 | target_link_libraries(mempool PRIVATE |
| 18 | cassert) | 18 | cassert) |
| 19 | 19 | ||
| 20 | target_compile_options(mempool PRIVATE -Wall -Wextra) | 20 | target_compile_options(mempool PRIVATE -Wall -Wextra -Wpedantic) |
| 21 | 21 | ||
| 22 | # Test | 22 | # Test |
| 23 | 23 | ||
| @@ -27,4 +27,4 @@ add_executable(mempool_test | |||
| 27 | target_link_libraries(mempool_test | 27 | target_link_libraries(mempool_test |
| 28 | mempool) | 28 | mempool) |
| 29 | 29 | ||
| 30 | target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | 30 | target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) |
diff --git a/memstack/CMakeLists.txt b/memstack/CMakeLists.txt index 9ad1aa1..6846e87 100644 --- a/memstack/CMakeLists.txt +++ b/memstack/CMakeLists.txt | |||
| @@ -17,7 +17,7 @@ target_include_directories(memstack PUBLIC | |||
| 17 | target_link_libraries(memstack PRIVATE | 17 | target_link_libraries(memstack PRIVATE |
| 18 | cassert) | 18 | cassert) |
| 19 | 19 | ||
| 20 | target_compile_options(memstack PRIVATE -Wall -Wextra) | 20 | target_compile_options(memstack PRIVATE -Wall -Wextra -Wpedantic) |
| 21 | 21 | ||
| 22 | # Test | 22 | # Test |
| 23 | 23 | ||
| @@ -27,4 +27,4 @@ add_executable(memstack_test | |||
| 27 | target_link_libraries(memstack_test | 27 | target_link_libraries(memstack_test |
| 28 | memstack) | 28 | memstack) |
| 29 | 29 | ||
| 30 | target_compile_options(memstack_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | 30 | target_compile_options(memstack_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) |
diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 2c34228..68cbe30 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt | |||
| @@ -19,14 +19,14 @@ target_link_libraries(plugin PRIVATE | |||
| 19 | list | 19 | list |
| 20 | log) | 20 | log) |
| 21 | 21 | ||
| 22 | target_compile_options(plugin PRIVATE -Wall -Wextra) | 22 | target_compile_options(plugin PRIVATE -Wall -Wextra -Wpedantic) |
| 23 | 23 | ||
| 24 | # Test | 24 | # Test |
| 25 | 25 | ||
| 26 | add_library(hello_plugin SHARED | 26 | add_library(hello_plugin SHARED |
| 27 | test/hello_plugin.c) | 27 | test/hello_plugin.c) |
| 28 | 28 | ||
| 29 | target_compile_options(hello_plugin PRIVATE -Wall -Wextra) | 29 | target_compile_options(hello_plugin PRIVATE -Wall -Wextra -Wpedantic) |
| 30 | 30 | ||
| 31 | add_executable(plugin_test | 31 | add_executable(plugin_test |
| 32 | test/plugin_test.c) | 32 | test/plugin_test.c) |
| @@ -35,4 +35,4 @@ target_link_libraries(plugin_test | |||
| 35 | plugin | 35 | plugin |
| 36 | test) | 36 | test) |
| 37 | 37 | ||
| 38 | target_compile_options(plugin_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | 38 | target_compile_options(plugin_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) |
diff --git a/random/CMakeLists.txt b/random/CMakeLists.txt index 3c4b2dc..c759ef8 100644 --- a/random/CMakeLists.txt +++ b/random/CMakeLists.txt | |||
| @@ -12,4 +12,4 @@ add_library(random | |||
| 12 | 12 | ||
| 13 | target_include_directories(random PUBLIC include) | 13 | target_include_directories(random PUBLIC include) |
| 14 | 14 | ||
| 15 | target_compile_options(random PRIVATE -Wall -Wextra) | 15 | target_compile_options(random PRIVATE -Wall -Wextra -Wpedantic) |
diff --git a/timer/CMakeLists.txt b/timer/CMakeLists.txt index fb300a0..55f4d79 100644 --- a/timer/CMakeLists.txt +++ b/timer/CMakeLists.txt | |||
| @@ -15,7 +15,7 @@ add_library(timer ${SRC}) | |||
| 15 | 15 | ||
| 16 | target_include_directories(timer PUBLIC include) | 16 | target_include_directories(timer PUBLIC include) |
| 17 | 17 | ||
| 18 | target_compile_options(timer PRIVATE -Wall -Wextra) | 18 | target_compile_options(timer PRIVATE -Wall -Wextra -Wpedantic) |
| 19 | 19 | ||
| 20 | # Test | 20 | # Test |
| 21 | 21 | ||
| @@ -24,4 +24,4 @@ add_executable(timer_test | |||
| 24 | 24 | ||
| 25 | target_link_libraries(timer_test timer) | 25 | target_link_libraries(timer_test timer) |
| 26 | 26 | ||
| 27 | target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) | 27 | target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) |
