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

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