From 5cd97baf39a37df327b31d06562c0e9dfa42a66f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 26 Feb 2018 18:03:34 -0800 Subject: Require semicolon after static_{forward,def} macros. * lib.h (static_forward, static_def): At least the C version of these now require a trailing semicolon. * struct.c (struct_type_ops): Add required semicolon after static_def. * syslog.c (syslog_strm_ops): Add required semicolon after static_forward and after static_def. --- lib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib.h') diff --git a/lib.h b/lib.h index 4448c287..f80f497a 100644 --- a/lib.h +++ b/lib.h @@ -1183,6 +1183,6 @@ loc list_collect_revappend(loc ptail, val obj); #define static_forward(decl) namespace { extern decl; } #define static_def(def) namespace { def; } #else -#define static_forward(decl) static decl; -#define static_def(def) static def; +#define static_forward(decl) static decl +#define static_def(def) static def #endif -- cgit v1.2.3