diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-03-02 04:43:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-01 12:43:26 -0800 |
| commit | a4ba7d63e3035895b8081387b49a52b0fda53424 (patch) | |
| tree | c21666eff58bc41aa93b61e30c58628044275142 /source/slang/slang-stdlib.cpp | |
| parent | 0d01b3701aae582b5fe3b6e2c2c718bec568c741 (diff) | |
warnings (#3653)
* Remove unused code
* unused variable warnings
* unused variable
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
| -rw-r--r-- | source/slang/slang-stdlib.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index 55b023a36..2bc24d8ec 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -257,12 +257,14 @@ namespace Slang struct IntrinsicOpInfo { IROp opCode; char const* funcName; char const* opName; char const* interface; unsigned flags; }; + [[maybe_unused]] static const IntrinsicOpInfo intrinsicUnaryOps[] = { { kIROp_Neg, "neg", "-", "__BuiltinArithmeticType", ARITHMETIC_MASK }, { kIROp_Not, "logicalNot", "!", nullptr, BOOL_MASK | BOOL_RESULT }, { kIROp_BitNot, "not", "~", "__BuiltinLogicalType", INT_MASK }, }; + [[maybe_unused]] static const IntrinsicOpInfo intrinsicBinaryOps[] = { {kIROp_Add, "add", "+", "__BuiltinArithmeticType", ARITHMETIC_MASK}, {kIROp_Sub, "sub", "-", "__BuiltinArithmeticType", ARITHMETIC_MASK}, |
