summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index daffde45d..dddf1e12e 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -408,6 +408,10 @@ workspace "slang"
filter { "toolset:clang or gcc*", "language:C++" }
buildoptions { "-Wno-reorder", "-Wno-invalid-offsetof" }
+ -- Enable some warnings on clang/gcc which are on by default in MSVC
+ filter { "toolset:clang or gcc*", "language:C++" }
+ buildoptions { "-Wnarrowing" }
+
-- When compiling the debug configuration, we want to turn
-- optimization off, make sure debug symbols are output,
-- and add the same preprocessor definition that VS