Skip to content

Commit

Permalink
userconfig: add some more GCC warning flags
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Jul 27, 2024
1 parent 3517ef7 commit bf9f30b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,23 @@ function(fm-userconfig-src)
-Wswitch-enum -Wlarger-than=8192
-Wlogical-op
-Wunsafe-loop-optimizations
-Wctor-dtor-privacy -Wno-error=ctor-dtor-privacy
-Winvalid-constexpr -Winvalid-imported-macros
-Woverloaded-virtual

#-fconcepts-diagnostics-depth=2
)
#add_compile_options(-Wuseless-cast)
add_link_options(-Wno-lto-type-mismatch -Wno-odr)
add_link_options(-Wno-lto-type-mismatch -Wodr -Wno-error=odr)
add_compile_options(
#-Wno-c++20-compat
-Wno-switch-enum
-Wno-ctad-maybe-unsupported
-Wno-ignored-attributes
-Wno-parentheses
-Wno-lto-type-mismatch -Wno-odr
#-Wno-lto-type-mismatch -Wno-odr
-Wno-error=lto-type-mismatch
-Wodr -Wno-error=odr
)
add_compile_options(
-Werror=format
Expand Down

0 comments on commit bf9f30b

Please sign in to comment.