Skip to content

Commit

Permalink
cmake: remove various warning suppressions
Browse files Browse the repository at this point in the history
They are included in -Wall in GCC and Clang. We disable less warnigns now.

Co-authored-by: Rosen Penev
  • Loading branch information
robUx4 committed Feb 17, 2024
1 parent fdea045 commit 58cc71f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ endfunction()
if(DEV_MODE)
message(STATUS "Using developer mode for ${CMAKE_CXX_COMPILER_ID}")
set(CMAKE_CXX_EXTENSIONS OFF)
add_cxx_flag_if_supported(-Wall -Wno-comment -Wfatal-errors -fstack-protector-strong -Wnon-virtual-dtor -Wextra
-Wunused -Wpedantic -Woverloaded-virtual -Wshadow
-Wno-self-assign -Wno-mismatched-tags -Wno-inconsistent-missing-override
-Wno-potentially-evaluated-expression -Wno-extra-semi -Wno-gnu-zero-variadic-macro-arguments)
add_cxx_flag_if_supported(-Qunused-arguments)
add_cxx_flag_if_supported(-Wno-error=unused-command-line-argument
-Wall -Wextra -Wpedantic -Wfatal-errors -fstack-protector-strong
-Wno-self-assign
-Wcast-align)
endif()

set(libmatroska_SOURCES
Expand Down

0 comments on commit 58cc71f

Please sign in to comment.