From db36ef4922d985c3789081ed2d842dd6d3d5c1b0 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sun, 29 Jan 2017 12:54:49 +0100 Subject: Ignore compiler warnings from a generated gperf include file We can't really fix the warnings as it's a generated file; instead just ignore the warnings so they don't show up as noise. --- libappstream-glib/as-tag.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libappstream-glib/as-tag.c b/libappstream-glib/as-tag.c index 5d44f96..bd78939 100644 --- a/libappstream-glib/as-tag.c +++ b/libappstream-glib/as-tag.c @@ -36,7 +36,12 @@ #include "as-tag.h" #ifdef HAVE_GPERF + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wconversion" + #pragma GCC diagnostic ignored "-Wmissing-prototypes" + #pragma GCC diagnostic ignored "-Wsign-conversion" #include "as-tag-private.h" + #pragma GCC diagnostic pop #endif /** -- cgit v1.2.1