Skip to content

Commit

Permalink
Silence NNI_ASSERT warnings when building with NDEBUG (#1621) (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
L0PiTaL committed Oct 19, 2022
1 parent d065bab commit 5385b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/defs.h
Expand Up @@ -23,7 +23,7 @@
if (!(x)) \
nni_panic("%s: %d: assert err: %s", __FILE__, __LINE__, #x)
#else
#define NNI_ASSERT(x) (0)
#define NNI_ASSERT(x) ((void)(0))
#endif

// Returns the size of an array in elements. (Convenience.)
Expand Down

0 comments on commit 5385b78

Please sign in to comment.