[ci,assert] silence coverity on WINPR_ASSERT

silence covertiy NO_EFFECT with _Pragma when using WINPR_ASSERT.
We´ve got a lot of situations where a check is mostly useless when
functions are called correctly, but the check triggers on common errors.
So silence this warning on our perfectly fine usage situations
This commit is contained in:
akallabeth 2024-10-28 08:36:23 +01:00
parent 259b4f40c8
commit c513886914
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

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)