diff mbox series

[7/9] Require a semicolon for VIR_LOG_INIT calls

Message ID dc58a2963955af9fa76f2d83e2f6ae76ebaad6c8.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/virlog.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/virlog.h b/src/util/virlog.h
index 8edd390378..775a726b06 100644
--- a/src/util/virlog.h
+++ b/src/util/virlog.h
@@ -79,7 +79,7 @@  struct _virLogSource {
         .priority = VIR_LOG_ERROR, \
         .serial = 0, \
         .flags = 0, \
-    };
+    }
 
 /*
  * If configured with --enable-debug=yes then library calls