diff --git a/libraries/adlmidi/CMakeLists.txt b/libraries/adlmidi/CMakeLists.txt index ec831200c..c95bfcb7c 100644 --- a/libraries/adlmidi/CMakeLists.txt +++ b/libraries/adlmidi/CMakeLists.txt @@ -5,10 +5,6 @@ use_fast_math() 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 adldata.cpp adlmidi.cpp diff --git a/libraries/bzip2/CMakeLists.txt b/libraries/bzip2/CMakeLists.txt index 7fefb2bf2..e01d5c09e 100644 --- a/libraries/bzip2/CMakeLists.txt +++ b/libraries/bzip2/CMakeLists.txt @@ -2,10 +2,6 @@ cmake_minimum_required( VERSION 2.8.7 ) 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_library( bz2 STATIC blocksort.c diff --git a/libraries/lzma/CMakeLists.txt b/libraries/lzma/CMakeLists.txt index 4246a34f8..b0d7565cd 100644 --- a/libraries/lzma/CMakeLists.txt +++ b/libraries/lzma/CMakeLists.txt @@ -2,10 +2,6 @@ cmake_minimum_required( VERSION 2.8.7 ) 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( LZMA_FILES diff --git a/libraries/opnmidi/CMakeLists.txt b/libraries/opnmidi/CMakeLists.txt index 189b22294..955ff4a14 100644 --- a/libraries/opnmidi/CMakeLists.txt +++ b/libraries/opnmidi/CMakeLists.txt @@ -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) 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 chips/gens_opn2.cpp chips/gens/Ym2612_Emu.cpp diff --git a/libraries/timidity/CMakeLists.txt b/libraries/timidity/CMakeLists.txt index fd80ba16e..206422b90 100644 --- a/libraries/timidity/CMakeLists.txt +++ b/libraries/timidity/CMakeLists.txt @@ -4,8 +4,7 @@ use_fast_math() require_stricmp() 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 -Wno-unused-function -Wno-unused-variable" ) endif() include_directories( timidity ) diff --git a/libraries/timidityplus/CMakeLists.txt b/libraries/timidityplus/CMakeLists.txt index 053b6ffba..81470af24 100644 --- a/libraries/timidityplus/CMakeLists.txt +++ b/libraries/timidityplus/CMakeLists.txt @@ -3,7 +3,6 @@ cmake_minimum_required( VERSION 2.8.7 ) use_fast_math() 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" ) endif() diff --git a/libraries/zmusic/CMakeLists.txt b/libraries/zmusic/CMakeLists.txt index 71896491c..06b100246 100644 --- a/libraries/zmusic/CMakeLists.txt +++ b/libraries/zmusic/CMakeLists.txt @@ -5,7 +5,6 @@ require_stricmp() require_strnicmp() 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" ) endif()