1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 19:52:37 +01:00

Enable -Wduplicated-branches (GCC)

This commit is contained in:
Nekotekina 2021-03-13 18:03:08 +03:00
parent c22e1e71f0
commit ccdea1c4ad
3 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,9 @@
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#ifndef __clang__
#pragma GCC diagnostic ignored "-Wduplicated-branches"
#endif
#include <asmjit/asmjit.h>
#pragma GCC diagnostic pop
#endif

View File

@ -50,7 +50,7 @@ else()
add_compile_options(-Werror=suggest-override)
add_compile_options(-Wclobbered)
add_compile_options(-Wcast-function-type)
#add_compile_options(-Wduplicated-branches)
add_compile_options(-Wduplicated-branches)
#add_compile_options(-Wduplicated-cond)
#add_compile_options(-Wredundant-decls)
endif()

View File

@ -17,6 +17,9 @@
#pragma GCC diagnostic ignored "-Wextra"
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#ifndef __clang__
#pragma GCC diagnostic ignored "-Wduplicated-branches"
#endif
#include <stb_image.h>
#include <stb_truetype.h>
#pragma GCC diagnostic pop