Blame SOURCES/0021-util-grub-mount.c-Extend-GCC-warning-workaround-to-g.patch

39700a
From fa9e3a9aa30988c2339e9d05c81b5d91534f4049 Mon Sep 17 00:00:00 2001
39700a
From: Vladimir Serbinenko <phcoder@gmail.com>
39700a
Date: Sat, 18 Jan 2014 16:43:29 +0100
39700a
Subject: [PATCH 021/143] 	* util/grub-mount.c: Extend GCC warning
39700a
 workaround to grub-mount.
39700a
39700a
---
39700a
 ChangeLog         | 4 ++++
39700a
 util/grub-mount.c | 7 ++++++-
39700a
 2 files changed, 10 insertions(+), 1 deletion(-)
39700a
39700a
diff --git a/ChangeLog b/ChangeLog
39700a
index b04a4ef..8534158 100644
39700a
--- a/ChangeLog
39700a
+++ b/ChangeLog
39700a
@@ -1,5 +1,9 @@
39700a
 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
39700a
 
39700a
+	* util/grub-mount.c: Extend GCC warning workaround to grub-mount.
39700a
+
39700a
+2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
39700a
+
39700a
 	* grub-core/kern/efi/efi.c: Ensure that the result starts with /
39700a
 	and has no //.
39700a
 
39700a
diff --git a/util/grub-mount.c b/util/grub-mount.c
39700a
index 118881e..19de2e6 100644
39700a
--- a/util/grub-mount.c
39700a
+++ b/util/grub-mount.c
39700a
@@ -41,8 +41,13 @@
39700a
 #include <string.h>
39700a
 #include <stdlib.h>
39700a
 
39700a
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
39700a
+#pragma GCC diagnostic ignored "-Wmissing-declarations"
39700a
+#include <argp.h>
39700a
+#pragma GCC diagnostic error "-Wmissing-prototypes"
39700a
+#pragma GCC diagnostic error "-Wmissing-declarations"
39700a
+
39700a
 #include "progname.h"
39700a
-#include "argp.h"
39700a
 
39700a
 static const char *root = NULL;
39700a
 grub_device_t dev = NULL;
39700a
-- 
39700a
1.9.3
39700a