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

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
23d2ea
Subject: [PATCH 021/198] * 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
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
-- 
23d2ea
2.7.4
39700a