diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2024-05-22 09:18:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-22 06:18:22 -0700 |
| commit | 8e15bdc9179213d403b540a879a1816699bde5e6 (patch) | |
| tree | ee986632900f4ca7c65065f6866cb51d2544105f /source/slang/slang-capability.cpp | |
| parent | 52b5bb43fd2933a30b405e7938ff62b209eea026 (diff) | |
Fix all Clang-14 warnings (#4203)
* fix all Clang-14 warnings
* remove a clang-14 warning fix because it is a MSVC warning...
Diffstat (limited to 'source/slang/slang-capability.cpp')
| -rw-r--r-- | source/slang/slang-capability.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-capability.cpp b/source/slang/slang-capability.cpp index 5cd46f631..eae04f277 100644 --- a/source/slang/slang-capability.cpp +++ b/source/slang/slang-capability.cpp @@ -627,8 +627,10 @@ bool CapabilitySet::hasSameTargets(const CapabilitySet& other) const // MSVC incorrectly throws warning +#if defined(_MSC_VER) #pragma warning(push) #pragma warning(disable:4702) +#endif /// returns true if 'this' is a better target for 'targetCaps' than 'that' /// isEqual: is `this` and `that` equal /// isIncompatible: is `this` and `that` incompatible @@ -743,7 +745,9 @@ bool CapabilitySet::isBetterForTarget(CapabilitySet const& that, CapabilitySet c } return true; } +#if defined(_MSC_VER) #pragma warning(pop) +#endif CapabilitySet::AtomSets::Iterator CapabilitySet::getAtomSets() const { |
