From 5c72b48e3fb3a9119d04738e0c25567a2fe87474 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Wed, 1 Nov 2023 13:20:07 -0400 Subject: [PATCH] add -Wextra --- clion_cmake_exec.txt | 4 ++-- clion_cmake_lib.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clion_cmake_exec.txt b/clion_cmake_exec.txt index 3e01c00..ebadb3c 100644 --- a/clion_cmake_exec.txt +++ b/clion_cmake_exec.txt @@ -12,8 +12,8 @@ file(GLOB_RECURSE PROJECT_BUILD_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") add_executable(${PROJECT_NAME} ${PROJECT_BUILD_FILES}) -target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Werror -Wpedantic -Wno-comment) -target_link_options(${PROJECT_NAME} PRIVATE -Wall -Werror -Wpedantic -Wno-comment) +target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment) +target_link_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment) if (${ENABLE_ADDRSAN} MATCHES ON) target_compile_options(${PROJECT_NAME} PRIVATE -fsanitize=address) diff --git a/clion_cmake_lib.txt b/clion_cmake_lib.txt index fd87361..e21567d 100644 --- a/clion_cmake_lib.txt +++ b/clion_cmake_lib.txt @@ -12,8 +12,8 @@ file(GLOB_RECURSE PROJECT_BUILD_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") add_library(${PROJECT_NAME}${CMAKE_LIBRARY_TYPE} ${PROJECT_BUILD_FILES}) -target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Werror -Wpedantic -Wno-comment) -target_link_options(${PROJECT_NAME} PRIVATE -Wall -Werror -Wpedantic -Wno-comment) +target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment) +target_link_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -Wpedantic -Wno-comment) if (${ENABLE_ADDRSAN} MATCHES ON) target_compile_options(${PROJECT_NAME} PRIVATE -fsanitize=address)