Skip to content

Commit ef115ee

Browse files
Wextra
1 parent 424c8f9 commit ef115ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
3434
add_definitions("-D_DEBUG")
3535
endif()
3636

37+
add_compile_options("-Werror=extra")
3738

3839
# Default to C++17
3940
set(CMAKE_CXX_STANDARD 17)

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function(_get_common_test_compile_options output_var c_test flags)
3131
endif()
3232

3333
# list(APPEND compile_options "-Wall")
34-
# list(APPEND compile_options "-Wextra")
34+
list(APPEND compile_options "-Wextra")
3535
# -DLIBC_WNO_ERROR=ON if you can't build cleanly with -Werror.
3636
if(NOT LIBC_WNO_ERROR)
3737
# list(APPEND compile_options "-Werror")

0 commit comments

Comments
 (0)