Skip to content

Commit

Permalink
Suppress a gcc warning related to -O3 -g (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
KineticTheory authored Jun 29, 2021
1 parent 05cffd6 commit a31862f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/unix-g++.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ if(NOT CXX_FLAGS_INITIALIZED)
CONCAT CMAKE_C_FLAGS_DEBUG "-fno-inline -fno-eliminate-unused-debug-types -O0"
" -Wundef -Wunreachable-code -fsanitize=bounds-strict -fdiagnostics-color=auto -DDEBUG")
# GCC_COLORS="error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01"
string(CONCAT CMAKE_C_FLAGS_RELEASE "-O3 -funroll-loops -D_FORTIFY_SOURCE=2 -DNDEBUG")
string(CONCAT CMAKE_C_FLAGS_RELEASE "-O3 -funroll-loops -D_FORTIFY_SOURCE=2"
" -fno-var-tracking-assignments -DNDEBUG")
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_RELEASE}")
string(CONCAT CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -fno-eliminate-unused-debug-types"
" -funroll-loops")
Expand Down

0 comments on commit a31862f

Please sign in to comment.