summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-10 00:32:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-10 00:38:27 +0200
commite87dfaf52d3f4e43fb1f6fea57fceaba71568487 (patch)
tree64180296cd2fa7c7d2639c38cf3408aa36b2a284
parent385fb319018fb138f1e6e466adfa407f369328ce (diff)
cmake: reenable -Wcomma
-rw-r--r--editor/app.cpp15
-rw-r--r--userconfig-sthalik@Windows-Clang.cmake2
2 files changed, 13 insertions, 4 deletions
diff --git a/editor/app.cpp b/editor/app.cpp
index e2632f32..8b47bb10 100644
--- a/editor/app.cpp
+++ b/editor/app.cpp
@@ -146,11 +146,20 @@ fm_settings app::parse_cmdline(int argc, const char* const* const argv)
}
if (auto str = args.value<StringView>("window");
str == "fullscreen")
- opts.fullscreen = true, opts.resizable = false;
+ {
+ opts.fullscreen = true;
+ opts.resizable = false;
+ }
else if (str == "borderless")
- opts.borderless = true, opts.resizable = false;
+ {
+ opts.borderless = true;
+ opts.resizable = false;
+ }
else if (str == "fullscreen-desktop")
- opts.fullscreen_desktop = true, opts.resizable = false;
+ {
+ opts.fullscreen_desktop = true;
+ opts.resizable = false;
+ }
else if (str == "maximize" || str == "maximized")
opts.maximized = true;
else if (str == "windowed")
diff --git a/userconfig-sthalik@Windows-Clang.cmake b/userconfig-sthalik@Windows-Clang.cmake
index 61291ada..2ebcde43 100644
--- a/userconfig-sthalik@Windows-Clang.cmake
+++ b/userconfig-sthalik@Windows-Clang.cmake
@@ -107,7 +107,6 @@ function(fm-userconfig-src)
-Wno-ignored-attributes
-Wno-reserved-identifier
-Wno-zero-length-array
- -Wno-comma
-Wno-unsafe-buffer-usage
)
add_compile_options(
@@ -123,5 +122,6 @@ function(fm-userconfig-src)
-Wno-error=alloca
-Wno-error=double-promotion
-Wno-error=ambiguous-reversed-operator
+ -Wno-error=comma
)
endfunction()