@ -311,13 +311,9 @@ else()
message ( STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}" )
message ( STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}" )
if ( ARCH STREQUAL "default" )
if ( ARCH STREQUAL "default" )
set ( ARCH_FLAG "" )
set ( ARCH_FLAG "" )
else ( )
if ( ARCH STREQUAL "x86_64" )
set ( ARCH_FLAG "-march=x86-64" )
else ( )
else ( )
set ( ARCH_FLAG "-march=${ARCH}" )
set ( ARCH_FLAG "-march=${ARCH}" )
endif ( )
endif ( )
endif ( )
set ( WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized" )
set ( WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized" )
if ( NOT MINGW )
if ( NOT MINGW )
set ( WARNINGS_AS_ERRORS_FLAG "-Werror" )
set ( WARNINGS_AS_ERRORS_FLAG "-Werror" )