aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-04-05 15:00:15 -0700
committer3gg <3gg@shellblade.net>2026-04-05 15:00:15 -0700
commit51cb3dca28db17a1975cc9e04b6c75d2c89715c2 (patch)
tree26e03ea266bf8f7f9f0e27126cde9da51335f5dc
parentc3f868d293a9b63a2bdc74dabdeaec9c4a0dfc5a (diff)
Add pedantic
-rw-r--r--CMakeLists.txt1
-rw-r--r--error/CMakeLists.txt2
-rw-r--r--filesystem/CMakeLists.txt2
-rw-r--r--hash/CMakeLists.txt2
-rw-r--r--list/CMakeLists.txt2
-rw-r--r--log/CMakeLists.txt2
-rw-r--r--mem/CMakeLists.txt4
-rw-r--r--mempool/CMakeLists.txt4
-rw-r--r--memstack/CMakeLists.txt4
-rw-r--r--plugin/CMakeLists.txt6
-rw-r--r--random/CMakeLists.txt2
-rw-r--r--timer/CMakeLists.txt4
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)
16add_subdirectory(memstack) 16add_subdirectory(memstack)
17add_subdirectory(plugin) 17add_subdirectory(plugin)
18add_subdirectory(random) 18add_subdirectory(random)
19add_subdirectory(simloop)
19add_subdirectory(timer) 20add_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
15target_link_libraries(error 15target_link_libraries(error
16 cstring) 16 cstring)
17 17
18target_compile_options(error PRIVATE -Wall -Wextra) 18target_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
16target_link_libraries(filesystem PRIVATE 16target_link_libraries(filesystem PRIVATE
17 cassert) 17 cassert)
18 18
19target_compile_options(filesystem PRIVATE -Wall -Wextra) 19target_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
12target_include_directories(hash PUBLIC include) 12target_include_directories(hash PUBLIC include)
13 13
14target_compile_options(hash PRIVATE -Wall -Wextra) 14target_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
21target_link_libraries(list_test 21target_link_libraries(list_test
22 list) 22 list)
23 23
24target_compile_options(list_test PRIVATE -DUNIT_TEST -Wall -Wextra) 24target_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
12target_include_directories(log PUBLIC 12target_include_directories(log PUBLIC
13 include) 13 include)
14 14
15target_compile_options(log PRIVATE -Wall -Wextra) 15target_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
21target_compile_options(mem PRIVATE -Wall -Wextra) 21target_compile_options(mem PRIVATE -Wall -Wextra -Wpedantic)
22 22
23# Test 23# Test
24 24
@@ -28,4 +28,4 @@ add_executable(mem_test
28target_link_libraries(mem_test 28target_link_libraries(mem_test
29 mem) 29 mem)
30 30
31target_compile_options(mem_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) 31target_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
17target_link_libraries(mempool PRIVATE 17target_link_libraries(mempool PRIVATE
18 cassert) 18 cassert)
19 19
20target_compile_options(mempool PRIVATE -Wall -Wextra) 20target_compile_options(mempool PRIVATE -Wall -Wextra -Wpedantic)
21 21
22# Test 22# Test
23 23
@@ -27,4 +27,4 @@ add_executable(mempool_test
27target_link_libraries(mempool_test 27target_link_libraries(mempool_test
28 mempool) 28 mempool)
29 29
30target_compile_options(mempool_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) 30target_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
17target_link_libraries(memstack PRIVATE 17target_link_libraries(memstack PRIVATE
18 cassert) 18 cassert)
19 19
20target_compile_options(memstack PRIVATE -Wall -Wextra) 20target_compile_options(memstack PRIVATE -Wall -Wextra -Wpedantic)
21 21
22# Test 22# Test
23 23
@@ -27,4 +27,4 @@ add_executable(memstack_test
27target_link_libraries(memstack_test 27target_link_libraries(memstack_test
28 memstack) 28 memstack)
29 29
30target_compile_options(memstack_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) 30target_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
22target_compile_options(plugin PRIVATE -Wall -Wextra) 22target_compile_options(plugin PRIVATE -Wall -Wextra -Wpedantic)
23 23
24# Test 24# Test
25 25
26add_library(hello_plugin SHARED 26add_library(hello_plugin SHARED
27 test/hello_plugin.c) 27 test/hello_plugin.c)
28 28
29target_compile_options(hello_plugin PRIVATE -Wall -Wextra) 29target_compile_options(hello_plugin PRIVATE -Wall -Wextra -Wpedantic)
30 30
31add_executable(plugin_test 31add_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
38target_compile_options(plugin_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) 38target_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
13target_include_directories(random PUBLIC include) 13target_include_directories(random PUBLIC include)
14 14
15target_compile_options(random PRIVATE -Wall -Wextra) 15target_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
16target_include_directories(timer PUBLIC include) 16target_include_directories(timer PUBLIC include)
17 17
18target_compile_options(timer PRIVATE -Wall -Wextra) 18target_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
25target_link_libraries(timer_test timer) 25target_link_libraries(timer_test timer)
26 26
27target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) 27target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic)