diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/warnings.cmake | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake new file mode 100644 index 0000000..1bddeb8 --- /dev/null +++ b/cmake/warnings.cmake @@ -0,0 +1,66 @@ +set(FUD_WARNINGS + -Werror + -Wstack-usage=2048 + -Wno-long-long + -Wno-error=long-long + -Wno-error=inline + -Wno-error=mismatched-tags + -Wall + -Weffc++ + -pedantic + -Wsizeof-pointer-memaccess + -pedantic-errors + -Wextra + -Wpacked + -Wshadow + -Wvla + -Wnull-dereference + -Wuninitialized + -Wstack-protector + -Warray-bounds + -Woverlength-strings + -Wwrite-strings + -Wcast-qual + -Wcast-align + -Wdisabled-optimization + -Wmissing-field-initializers + -Wimport + -Winit-self + -Winline + -Wchar-subscripts + -Wcomment + -Wconversion + -Wfloat-equal + -Wformat + -Wformat=2 + -Wformat-nonliteral + -Wformat-security + -Wformat-y2k + -Wmissing-format-attribute + -Wmissing-braces + -Winvalid-pch + -Wmissing-include-dirs + -Wmissing-noreturn + -Wparentheses + -Wpointer-arith + -Wredundant-decls + -Wreturn-type + -Wsequence-point + -Wsign-compare + -Wstrict-aliasing + -Wstrict-aliasing=2 + -Wswitch + -Wswitch-default + -Wswitch-enum + -Wtrigraphs + -Wunknown-pragmas + -Wunreachable-code + -Wunused + -Wunused-function + -Wunused-label + -Wunused-parameter + -Wunused-value + -Wunused-variable + -Wvariadic-macros + -Wvolatile-register-var +) |