Merge pull request #10792 from akallabeth/cov-assert-silence

[ci,assert] silence coverity on WINPR_ASSERT
This commit is contained in:
akallabeth 2024-10-28 09:22:54 +01:00 committed by GitHub
commit 98335b7dde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,7 @@ extern "C"
WINPR_PRAGMA_DIAG_PUSH \
WINPR_PRAGMA_DIAG_TAUTOLOGICAL_CONSTANT_OUT_OF_RANGE_COMPARE \
WINPR_PRAGMA_DIAG_TAUTOLOGICAL_VALUE_RANGE_COMPARE \
_Pragma("coverity compliance deviate \"NO_EFFECT:SUPPRESS\" \"WINPR_ASSERT\"") \
assert(cond); \
WINPR_PRAGMA_DIAG_POP \
} while (0)