From 6063304cb8d73d430e7ef81c62cd9822302fcc19 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 6 Jul 2023 03:18:14 +0800 Subject: Squash some warnings (#2956) * restrict -Wno-assume to clang (gcc does not have this warning) * Add move where possible Annoyingly this warns for c++17, but will not be necessary with c++20 * Do not partially initialize struct * Remove unused variable * Silence unused var warning It is actually still referenced from an uninstantiated (for now) template * Use unused var --------- Co-authored-by: jsmall-nvidia --- premake5.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index 20bb6b364..edcd56b4e 100644 --- a/premake5.lua +++ b/premake5.lua @@ -374,8 +374,10 @@ workspace "slang" } filter { "toolset:gcc*", "language:C++" } buildoptions { "-Wno-class-memaccess" } + filter { "toolset:clang", "language:C++" } + buildoptions { "-Wno-assume" } filter { "toolset:clang or gcc*", "language:C++" } - buildoptions { "-Wno-reorder", "-Wno-invalid-offsetof", "-Wno-assume" } + buildoptions { "-Wno-reorder", "-Wno-invalid-offsetof" } -- When compiling the debug configuration, we want to turn -- optimization off, make sure debug symbols are output, -- cgit v1.2.3