The evaluations are pointless and the warnings generated by not evaluating
can be squashed with a couple of #pragmas.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
#else // DBG
-static FORCEINLINE VOID
-_IgnoreAssertion(
- IN BOOLEAN Value
- )
-{
- UNREFERENCED_PARAMETER(Value);
-}
+#pragma warning(disable:4100)
+#pragma warning(disable:4189)
-#define ASSERT(_EXP) \
- do { \
- _IgnoreAssertion(_EXP); \
- __analysis_assume(_EXP); \
+#define ASSERT(_EXP) \
+ do { \
+ __analysis_assume(_EXP); \
} while (FALSE)
#define ASSERT3U(_X, _OP, _Y) \