- cleaned POSIX compiler arguments for libraries

Removed omission of frame pointers as it makes crash reports much less useful
Modified warning flags to hide annoying reports for external code
This commit is contained in:
alexey.lysiuk 2019-10-05 15:02:10 +03:00
parent 46270326be
commit b02ef69d49
7 changed files with 1 additions and 20 deletions

View file

@ -5,10 +5,6 @@ use_fast_math()
add_definitions(-DADLMIDI_DISABLE_MIDI_SEQUENCER) add_definitions(-DADLMIDI_DISABLE_MIDI_SEQUENCER)
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
endif()
add_library( adl STATIC add_library( adl STATIC
adldata.cpp adldata.cpp
adlmidi.cpp adlmidi.cpp

View file

@ -2,10 +2,6 @@ cmake_minimum_required( VERSION 2.8.7 )
make_release_only() make_release_only()
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fomit-frame-pointer" )
endif()
add_definitions( -DBZ_NO_STDIO ) add_definitions( -DBZ_NO_STDIO )
add_library( bz2 STATIC add_library( bz2 STATIC
blocksort.c blocksort.c

View file

@ -2,10 +2,6 @@ cmake_minimum_required( VERSION 2.8.7 )
make_release_only() make_release_only()
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fomit-frame-pointer" )
endif()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_PPMD_SUPPPORT" ) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_PPMD_SUPPPORT" )
set( LZMA_FILES set( LZMA_FILES

View file

@ -9,10 +9,6 @@ add_definitions(-DOPNMIDI_DISABLE_MIDI_SEQUENCER)
# Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback) # Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback)
add_definitions(-DOPNMIDI_DISABLE_GX_EMULATOR) add_definitions(-DOPNMIDI_DISABLE_GX_EMULATOR)
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
endif()
add_library( opn STATIC add_library( opn STATIC
chips/gens_opn2.cpp chips/gens_opn2.cpp
chips/gens/Ym2612_Emu.cpp chips/gens/Ym2612_Emu.cpp

View file

@ -4,8 +4,7 @@ use_fast_math()
require_stricmp() require_stricmp()
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-unused-function -Wno-unused-variable" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
endif() endif()
include_directories( timidity ) include_directories( timidity )

View file

@ -3,7 +3,6 @@ cmake_minimum_required( VERSION 2.8.7 )
use_fast_math() use_fast_math()
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
endif() endif()

View file

@ -5,7 +5,6 @@ require_stricmp()
require_strnicmp() require_strnicmp()
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
endif() endif()