diff mbox series

[5/9] Require a semicolon for VIR_ENUM_DECL calls

Message ID 76c42e73bd938f8d15d8b3793bf3f750b99ea489.1548283535.git.crobinso@redhat.com
State New
Headers show
Series Add semicolon to macro calls | expand

Commit Message

Cole Robinson Jan. 23, 2019, 10:46 p.m. UTC
Drop the semicolon from the final statement of the macro, so
the compiler will require callers to add a semicolon.

Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
 src/util/virutil.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

diff --git a/src/util/virutil.h b/src/util/virutil.h
index d1c7d6e138..d5adab61e2 100644
--- a/src/util/virutil.h
+++ b/src/util/virutil.h
@@ -96,7 +96,7 @@  const char *virEnumToString(const char *const*types,
 
 # define VIR_ENUM_DECL(name) \
     const char *name ## TypeToString(int type); \
-    int name ## TypeFromString(const char*type);
+    int name ## TypeFromString(const char*type)
 
 /* No-op workarounds for functionality missing in mingw.  */
 # ifndef HAVE_GETUID