File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -358,9 +358,8 @@ endif()
358358
359359# Warnings ####################################################################
360360#
361- # FIXME _ALL_TARGETS is not defined
362- foreach (pyamrex_tgt IN LISTS _ALL_TARGETS)
363- pyamrex_set_compile_warnings(${pyamrex_tgt} )
361+ foreach (D IN LISTS AMReX_SPACEDIM)
362+ pyamrex_set_compile_warnings(pyAMReX_${D} d)
364363endforeach ()
365364
366365
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ function(pyamrex_set_compile_warnings tgt)
205205 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "AppleClang" )
206206 target_compile_options (${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code)
207207 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
208- target_compile_options (${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code)
208+ target_compile_options (${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds )
209209 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
210210 # Warning C4503: "decorated name length exceeded, name was truncated"
211211 # Symbols longer than 4096 chars are truncated (and hashed instead)
You can’t perform that action at this time.
0 commit comments