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

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