Skip to content

Commit

Permalink
chore: Disable shadow warnings in Inja build and Linux compiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jul 7, 2024
1 parent f3baa65 commit 4479599
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/BuildInja.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ set(INJA_BUILD_TESTS OFF)
set(BUILD_BENCHMARK OFF)
set(COVERALLS OFF)
# inja uses a lot of shadowing
add_compile_options(-Wno-shadow)
add_compile_options(-Wno-shadow -Wno-error=shadow -Wno-shadow-field -Wno-error=shadow-field)
add_subdirectory(${CMAKE_SOURCE_DIR}/vendor/inja ${CMAKE_BINARY_DIR}/inja EXCLUDE_FROM_ALL)
1 change: 0 additions & 1 deletion cmake/linux/compilerconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ set(_obs_gcc_c_options
-Wno-unused-function
-Wno-unused-label
-Wparentheses
-Wshadow
-Wuninitialized
-Wunreachable-code
-Wunused-parameter
Expand Down

0 comments on commit 4479599

Please sign in to comment.