Skip to content

Commit 6f09f55

Browse files
committed
Finalize
1 parent 3c8fd23 commit 6f09f55

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
364363
endforeach()
365364

366365

cmake/pyAMReXFunctions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)