From 0e648c7c62944cd81aa57f10ac01cdabe2f2b7e0 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 29 Sep 2024 09:28:28 -0500 Subject: Remember various settings. --- warnings.cmake | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 warnings.cmake (limited to 'warnings.cmake') diff --git a/warnings.cmake b/warnings.cmake new file mode 100644 index 0000000..7228542 --- /dev/null +++ b/warnings.cmake @@ -0,0 +1,67 @@ +set(GETSUYOMI_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 + # -Wno-error=array-bounds + -Woverlength-strings + -Wwrite-strings + -Wcast-qual + -Wcast-align + -Wdisabled-optimization + -Wmissing-field-initializers + -Wimport + -Winit-self + -Wno-inline + -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 +) -- cgit v1.2.3