diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-27 12:36:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 21:36:59 -0700 |
| commit | 3acbe8145c60f4d1e7a180b4602a94269a489df5 (patch) | |
| tree | 8031e7ca897260ac3ab6d2a920864f3114bc8668 /premake5.lua | |
| parent | a3da31c189a1cc9bdf85a42ac359b8c2777f3550 (diff) | |
Fix most of the disabled warnings on gcc/clang (#2839)
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/premake5.lua b/premake5.lua index d7344ef92..7226d18ad 100644 --- a/premake5.lua +++ b/premake5.lua @@ -351,21 +351,18 @@ workspace "slang" filter { "toolset:clang or gcc*" } -- Makes all symbols hidden by default unless explicitly 'exported' buildoptions { "-fvisibility=hidden" } - -- Warnings - buildoptions { "-Wno-unused-but-set-variable", "-Wno-unused-parameter", "-Wno-type-limits", "-Wno-sign-compare", "-Wno-unused-variable", "-Wno-switch", "-Wno-return-type", "-Wno-unused-local-typedefs", "-Wno-parentheses" } - filter { "toolset:clang or gcc*", "language:C++" } - buildoptions { "-Wno-reorder", "-Wno-class-memaccess", "-Wno-invalid-offsetof" } - filter { "files:source/compiler-core/slang-dxc-compiler.cpp", "toolset:clang or gcc" } + filter { "toolset:clang or gcc*", "files:source/compiler-core/slang-dxc-compiler.cpp" } -- For the DXC headers buildoptions { "-fms-extensions" } - filter { "toolset:gcc*" } - buildoptions { "-Wno-implicit-fallthrough", "-Wno-maybe-uninitialized" } - - - filter { "toolset:clang" } - buildoptions { "-Wno-deprecated-register", "-Wno-tautological-compare", "-Wno-missing-braces", "-Wno-undefined-var-template", "-Wno-unused-function", "-Wno-return-std-move", "-Wno-ignored-optimization-argument", "-Wno-unknown-warning-option" } + -- Disable some warnings + filter { "toolset:clang or gcc*" } + buildoptions { "-Wno-switch", "-Wno-parentheses" } + filter { "toolset:gcc*", "language:C++" } + buildoptions { "-Wno-class-memaccess" } + filter { "toolset:clang or gcc*", "language:C++" } + buildoptions { "-Wno-reorder", "-Wno-invalid-offsetof" } -- When compiling the debug configuration, we want to turn -- optimization off, make sure debug symbols are output, |
