Skip to content

Commit

Permalink
cleanup: compile with -fno-operator-names in maintainer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed May 14, 2024
1 parent 1e5b0ff commit 11a34e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/maintainer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ FOREACH(F ${MY_WARNING_FLAGS})
MY_CHECK_AND_SET_COMPILER_FLAG(${F} DEBUG RELWITHDEBINFO)
ENDFOREACH()

SET(MY_ERROR_FLAGS -Werror)
SET(MY_ERROR_FLAGS -Werror -fno-operator-names)

IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "6.0.0")
SET(MY_ERROR_FLAGS ${MY_ERROR_FLAGS} -Wno-error=maybe-uninitialized)
Expand Down

0 comments on commit 11a34e7

Please sign in to comment.