summaryrefslogtreecommitdiffhomepage
path: root/userconfig-runner@Linux-GNU.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'userconfig-runner@Linux-GNU.cmake')
-rw-r--r--userconfig-runner@Linux-GNU.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/userconfig-runner@Linux-GNU.cmake b/userconfig-runner@Linux-GNU.cmake
new file mode 100644
index 00000000..fb149324
--- /dev/null
+++ b/userconfig-runner@Linux-GNU.cmake
@@ -0,0 +1,35 @@
+sets(BOOL FLOORMAT_PRECOMPILED-HEADERS OFF)
+
+# for floormat sources only
+function(fm-userconfig-src)
+ add_compile_options(
+ -Wall -Wextra -Wpedantic -Wno-old-style-cast -Wno-padded
+ )
+ add_compile_options(
+ -Wall
+ -Wextra
+ -Wpedantic
+ #-Weverything
+ -Wno-c++20-compat
+ -Wno-switch-enum
+ #-Wno-old-style-cast
+ #-Wno-shadow
+ -Wno-ctad-maybe-unsupported
+ -Wno-ignored-attributes
+ )
+ add_compile_options(
+ #-Werror
+ -Wno-error=float-equal
+ #-Wno-error=comma
+ -Wno-error=unused-parameter
+ -Wno-error=unused-variable
+ -Wno-error=unused-function
+ -Wno-error=unused-macros
+ #-Wno-error=alloca
+ -Wno-error=double-promotion
+ -Wno-error=restrict
+ -Wno-error=unused-but-set-variable
+ -Wno-error=subobject-linkage
+ -Wno-error=array-bounds
+ )
+endfunction()