File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ include(CheckCXXSourceCompiles)
2121if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" )
2222 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Werror -Wall -Wextra -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=sign-compare -std=c++11" )
2323 set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g" )
24- set (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG" )
25- set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" )
24+ set (CMAKE_CXX_FLAGS_MINSIZEREL "-g - Os -DNDEBUG" )
25+ set (CMAKE_CXX_FLAGS_RELEASE "-g - O2 -DNDEBUG" )
2626 set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g" )
2727elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
2828 # /Zi - Produces a program database (PDB) that contains type information and symbolic debugging information for use with the debugger.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ int size(const T &t) {
2727 int n = 0 ;
2828 for (auto i : t) {
2929 ++n;
30- (void )i; // Unused on purpose, suppress warning
30+ (void )i; // Unused on purpose, suppress warning
3131 }
3232 return n;
3333}
You can’t perform that action at this time.
0 commit comments