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

23d2ea
From 762b39fcff62416481f12d2002abf7cdb76adbf3 Mon Sep 17 00:00:00 2001
39700a
From: Vladimir Serbinenko <phcoder@gmail.com>
39700a
Date: Sat, 18 Jan 2014 16:43:29 +0100
27a4da
Subject: [PATCH 021/260] * util/grub-mount.c: Extend GCC warning workaround to
23d2ea
 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
27a4da
index b04a4ef70..8534158b6 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
27a4da
index 118881e0d..19de2e620 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
-- 
27a4da
2.13.0
39700a