summaryrefslogtreecommitdiff
path: root/source/slang/slang-lower-to-ir.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-07-06 03:18:14 +0800
committerGitHub <noreply@github.com>2023-07-05 15:18:14 -0400
commit6063304cb8d73d430e7ef81c62cd9822302fcc19 (patch)
tree8174e0d5acab31ce057db7b73e8f94b09d786a46 /source/slang/slang-lower-to-ir.cpp
parent93948b564d04eda555bf96025e89853be86cff8a (diff)
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 <jsmall@nvidia.com>
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
-rw-r--r--source/slang/slang-lower-to-ir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp
index cb2c9129a..c70cdb948 100644
--- a/source/slang/slang-lower-to-ir.cpp
+++ b/source/slang/slang-lower-to-ir.cpp
@@ -872,7 +872,7 @@ static LoweredValInfo _emitCallToAccessor(
/// encapsulates the reference to the storage so that downstream
/// code can decide which accessor(s) to invoke.
///
-
+[[maybe_unused]]
static LoweredValInfo lowerStorageReference(
IRGenContext* context,
IRType* type,
@@ -1448,7 +1448,6 @@ struct ValLoweringVisitor : ValVisitor<ValLoweringVisitor, LoweredValInfo, Lower
LoweredValInfo visitTypeCastIntVal(TypeCastIntVal* val)
{
- TryClauseEnvironment tryEnv;
auto baseVal = lowerVal(context, val->base);
SLANG_ASSERT(baseVal.flavor == LoweredValInfo::Flavor::Simple);
auto type = lowerType(context, val->type);