Sub-Interface deletion not cleanup hash's properly (VPP-1136)
[vpp.git] / src / vnet / bfd / bfd_cli.c
index 44e671c..0e73172 100644 (file)
@@ -20,6 +20,7 @@
 #include <vlib/vlib.h>
 #include <vlib/cli.h>
 #include <vppinfra/format.h>
+#include <vppinfra/warnings.h>
 #include <vnet/api_errno.h>
 #include <vnet/ip/format.h>
 #include <vnet/bfd/bfd_api.h>
@@ -386,8 +387,10 @@ static const unsigned optional = 0;
     }
 
 #define CHECK_MANDATORY(t, n, s, r, ...)                                  \
+WARN_OFF(tautological-compare)                                            \
   if (mandatory == r && !have_##n)                                        \
     {                                                                     \
+      WARN_ON(tautological-compare)                                       \
       ret = clib_error_return (0, "Required parameter `%s' missing.", s); \
       goto out;                                                           \
     }