frr/watchfrr
David Lamparter bf8d3d6aca *: require semicolon after DEFINE_MTYPE & co
Back when I put this together in 2015, ISO C11 was still reasonably new
and we couldn't require it just yet.  Without ISO C11, there is no
"good" way (only bad hacks) to require a semicolon after a macro that
ends with a function definition.  And if you added one anyway, you'd get
"spurious semicolon" warnings on some compilers...

With C11, `_Static_assert()` at the end of a macro will make it so that
the semicolon is properly required, consumed, and not warned about.

Consistently requiring semicolons after "file-level" macros matches
Linux kernel coding style and helps some editors against mis-syntax'ing
these macros.

Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-17 06:18:17 +01:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
Makefile build: non-recursive watchfrr & tools 2017-09-07 16:18:50 +02:00
subdir.am build: make clippy Makefile rules nicer 2020-04-27 09:52:41 +02:00
watchfrr.c *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
watchfrr.h *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
watchfrr_errors.c watchfrr: Modify some stderr messages to zlog_warn 2018-09-25 19:11:25 +02:00
watchfrr_errors.h watchfrr: Modify some stderr messages to zlog_warn 2018-09-25 19:11:25 +02:00
watchfrr_vty.c lib: rewrite zlog lock-free & TLS-buffered 2020-04-01 06:53:26 +02:00