From 51cb3dca28db17a1975cc9e04b6c75d2c89715c2 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 5 Apr 2026 15:00:15 -0700 Subject: Add pedantic --- CMakeLists.txt | 1 + error/CMakeLists.txt | 2 +- filesystem/CMakeLists.txt | 2 +- hash/CMakeLists.txt | 2 +- list/CMakeLists.txt | 2 +- log/CMakeLists.txt | 2 +- mem/CMakeLists.txt | 4 ++-- mempool/CMakeLists.txt | 4 ++-- memstack/CMakeLists.txt | 4 ++-- plugin/CMakeLists.txt | 6 +++--- random/CMakeLists.txt | 2 +- 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) add_subdirectory(memstack) add_subdirectory(plugin) add_subdirectory(random) +add_subdirectory(simloop) 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 target_link_libraries(error cstring) -target_compile_options(error PRIVATE -Wall -Wextra) +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 target_link_libraries(filesystem PRIVATE cassert) -target_compile_options(filesystem PRIVATE -Wall -Wextra) +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 target_include_directories(hash PUBLIC include) -target_compile_options(hash PRIVATE -Wall -Wextra) +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 target_link_libraries(list_test list) -target_compile_options(list_test PRIVATE -DUNIT_TEST -Wall -Wextra) +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 target_include_directories(log PUBLIC include) -target_compile_options(log PRIVATE -Wall -Wextra) +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 cassert list) -target_compile_options(mem PRIVATE -Wall -Wextra) +target_compile_options(mem PRIVATE -Wall -Wextra -Wpedantic) # Test @@ -28,4 +28,4 @@ add_executable(mem_test target_link_libraries(mem_test mem) -target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) +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 target_link_libraries(mempool PRIVATE cassert) -target_compile_options(mempool PRIVATE -Wall -Wextra) +target_compile_options(mempool PRIVATE -Wall -Wextra -Wpedantic) # Test @@ -27,4 +27,4 @@ add_executable(mempool_test target_link_libraries(mempool_test mempool) -target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) +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 target_link_libraries(memstack PRIVATE cassert) -target_compile_options(memstack PRIVATE -Wall -Wextra) +target_compile_options(memstack PRIVATE -Wall -Wextra -Wpedantic) # Test @@ -27,4 +27,4 @@ add_executable(memstack_test target_link_libraries(memstack_test memstack) -target_compile_options(memstack_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) +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 list log) -target_compile_options(plugin PRIVATE -Wall -Wextra) +target_compile_options(plugin PRIVATE -Wall -Wextra -Wpedantic) # Test add_library(hello_plugin SHARED test/hello_plugin.c) -target_compile_options(hello_plugin PRIVATE -Wall -Wextra) +target_compile_options(hello_plugin PRIVATE -Wall -Wextra -Wpedantic) add_executable(plugin_test test/plugin_test.c) @@ -35,4 +35,4 @@ target_link_libraries(plugin_test plugin test) -target_compile_options(plugin_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) +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 target_include_directories(random PUBLIC include) -target_compile_options(random PRIVATE -Wall -Wextra) +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}) target_include_directories(timer PUBLIC include) -target_compile_options(timer PRIVATE -Wall -Wextra) +target_compile_options(timer PRIVATE -Wall -Wextra -Wpedantic) # Test @@ -24,4 +24,4 @@ add_executable(timer_test target_link_libraries(timer_test timer) -target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) +target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) -- cgit v1.2.3