Skip to content

Commit

Permalink
Turn off -Wshadow for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bocchino committed Mar 3, 2025
1 parent 9347ccc commit 0329afc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions RPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ add_compile_options(
-pedantic
)

# Turn off -Wshadow for now in unit testing
# The generated code needs additional fixes
if (BUILD_TESTING)
add_compile_options(
-Wno-shadow
)
endif()

##
# Section 2: F prime Core
#
Expand Down
9 changes: 9 additions & 0 deletions Ref/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ add_compile_options(
-Wshadow
-pedantic
)

# Turn off -Wshadow for now in unit testing
# The generated code needs additional fixes
if (BUILD_TESTING)
add_compile_options(
-Wno-shadow
)
endif()

# Section 2: F prime Core
#
# This includes all of the F prime core components, and imports the make-system. F prime core
Expand Down

0 comments on commit 0329afc

Please sign in to comment.