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