diff mbox series

[1/3] kernel-shark: Enable extra compile warnings

Message ID 20240310193258.50899-1-y.karadz@gmail.com (mailing list archive)
State Accepted
Commit 3f2fa6ef16028f7f2d79ede34c187646a7dd68b8
Headers show
Series [1/3] kernel-shark: Enable extra compile warnings | expand

Commit Message

Yordan Karadzhov March 10, 2024, 7:32 p.m. UTC
Here we just add "-Wextra" compiler flag. The warnings will be fixed
in following patches.

Signed-off-by: Yordan Karadzhov <y.karadz@gmail.com>
---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 57bce29..a9bc082 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,8 +81,8 @@  find_package (Boost COMPONENTS unit_test_framework)
 set(LIBRARY_OUTPUT_PATH    "${KS_DIR}/lib")
 set(EXECUTABLE_OUTPUT_PATH "${KS_DIR}/bin")
 
-set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -Wall -pthread -fPIC -fno-common")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pthread -fPIC -fno-common")
+set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -Wall -Wextra -pthread -fPIC -fno-common")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pthread -fPIC -fno-common")
 
 set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)