[libvirt] [PATCH] util: add missing equal sign in initialization

Ján Tomko jtomko at redhat.com
Thu Apr 13 12:14:16 UTC 2017


Fix the build with clang:
util/virperf.c:86:27: error: use of GNU 'missing =' extension
    in designator [-Werror,-Wgnu-designator]
    [VIR_PERF_EVENT_MBML] {
                          ^
                          =
---
 src/util/virperf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Pushed.

diff --git a/src/util/virperf.c b/src/util/virperf.c
index 9ac27c1..fa5b6cc 100644
--- a/src/util/virperf.c
+++ b/src/util/virperf.c
@@ -83,7 +83,7 @@ static struct virPerfEventAttr attrs[] = {
         .attrType = 0,
         .attrConfig = 2
     },
-    [VIR_PERF_EVENT_MBML] {
+    [VIR_PERF_EVENT_MBML] = {
         .attrType = 0,
         .attrConfig = 3
     },
-- 
2.10.2




More information about the libvir-list mailing list