Skip to content

Commit 05314ac

Browse files
committed
remove -Wno-error=restrict
1 parent a2d5ef9 commit 05314ac

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,8 @@ else()
315315
list(APPEND MINIFI_CPP_COMPILE_OPTIONS -Wall -Wextra)
316316
if(MINIFI_FAIL_ON_WARNINGS)
317317
list(APPEND MINIFI_CPP_COMPILE_OPTIONS -Werror)
318-
# -Wrestrict may cause build failure in GCC 12 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104336
319318
endif()
320319
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
321-
list(APPEND MINIFI_CPP_COMPILE_OPTIONS -Wno-error=restrict)
322320
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15)
323321
list(APPEND MINIFI_CPP_COMPILE_OPTIONS -Wno-maybe-uninitialized)
324322
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118634

0 commit comments

Comments
 (0)