fix bfd cli with gcc >= 6 43/9243/2
authorGabriel Ganne <gabriel.ganne@enea.com>
Mon, 6 Nov 2017 15:52:24 +0000 (16:52 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 7 Nov 2017 08:31:35 +0000 (08:31 +0000)
Change-Id: Iff63238bcf87db3411493e95064c5ad3ed8fd166
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
src/vnet/bfd/bfd_cli.c

index b2cd8df..a533bb7 100644 (file)
@@ -397,8 +397,8 @@ static const unsigned optional = 0;
 #define CHECK_MANDATORY(t, n, s, r, ...)                                  \
   PRAGMA_STR1                                                             \
   if (mandatory == r && !have_##n)                                        \
-    PRAGMA_STR2                                                           \
     {                                                                     \
+      PRAGMA_STR2                                                         \
       ret = clib_error_return (0, "Required parameter `%s' missing.", s); \
       goto out;                                                           \
     }