Skip to content

Commit 6adc9e7

Browse files
committed
CMake (GCC 12+): mute array-bounds warning
1 parent 02dec8d commit 6adc9e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/platform/linux.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(PLATFORM_COMPILE_OPTIONS
66
${PLATFORM_COMPILE_OPTIONS}
77

88
-Wall
9-
-Wno-attributes
9+
-Wno-array-bounds -Wno-attributes
1010

1111
-mtune=generic -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2
1212
-fvisibility=default -fPIC

cmake/platform/macos.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(PLATFORM_COMPILE_OPTIONS
66
${PLATFORM_COMPILE_OPTIONS}
77

88
-Wall
9-
-Wno-attributes
9+
-Wno-array-bounds -Wno-attributes
1010

1111
-fvisibility=default -fPIC
1212
)

0 commit comments

Comments
 (0)