summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorEllie Hermaszewska <github@sub.monoid.al>2022-10-05 04:54:49 +0800
committerGitHub <noreply@github.com>2022-10-04 13:54:49 -0700
commit8b1daa68a5ff1398cdf130aacad32d2e5646d1eb (patch)
tree21061d2ee105eac009d657ca87a59e1a70049891 /source
parent7c54489e1f4016852df84eece93ded672b1b468e (diff)
Squash some warnings from gcc 12.2 (#2428)
* Use premake's linkgroups rather than specifying the flags ourselves Fixes linker warning about unterminated --start-group * C++ only warnings only when compiling C++ * compile miniz and l4z as C, not C++ * Use enum over 0 literal Silences enum-literal-compare warning Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-reflection-api.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp
index eb2b9aff9..ca64cbed1 100644
--- a/source/slang/slang-reflection-api.cpp
+++ b/source/slang/slang-reflection-api.cpp
@@ -1243,7 +1243,9 @@ namespace Slang
auto shape = resourceType->getBaseShape();
auto access = resourceType->getAccess();
- auto mutableFlag = access != SLANG_RESOURCE_ACCESS_READ ? SLANG_BINDING_TYPE_MUTABLE_FLAG : 0;
+ auto mutableFlag = access != SLANG_RESOURCE_ACCESS_READ
+ ? SLANG_BINDING_TYPE_MUTABLE_FLAG
+ : SLANG_BINDING_TYPE_UNKNOWN;
switch(SlangResourceShape(shape ))
{