[gnome-builder] gdb: ignore some warnings from the gdbwire amalgamation



commit 38b3f0a390ad93d9e869076f97fe2006674db0a6
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 25 14:17:27 2017 -0700

    gdb: ignore some warnings from the gdbwire amalgamation
    
    This fixes the warnings from the header, but not the C90 warnings from
    the gdbwire.c.

 src/plugins/gdb/gbp-gdb-debugger.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gdb/gbp-gdb-debugger.c b/src/plugins/gdb/gbp-gdb-debugger.c
index 70b203c..6dc6fa6 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -21,7 +21,11 @@
 #include <dazzle.h>
 #include <string.h>
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wredundant-decls"
 #include "gdbwire.h"
+#pragma GCC diagnostic pop
+
 #include "gbp-gdb-debugger.h"
 
 #define READ_BUFFER_LEN 4096


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]