nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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