dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

28f7f8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
39700a
From: Vladimir Serbinenko <phcoder@gmail.com>
39700a
Date: Sat, 18 Jan 2014 16:43:29 +0100
28f7f8
Subject: [PATCH] * util/grub-mount.c: Extend GCC warning workaround to
23d2ea
 grub-mount.
39700a
39700a
---
39700a
 util/grub-mount.c | 7 ++++++-
28f7f8
 ChangeLog         | 4 ++++
39700a
 2 files changed, 10 insertions(+), 1 deletion(-)
39700a
39700a
diff --git a/util/grub-mount.c b/util/grub-mount.c
28f7f8
index 118881e0d9d..19de2e62057 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;
28f7f8
diff --git a/ChangeLog b/ChangeLog
28f7f8
index b04a4ef70b9..8534158b6c0 100644
28f7f8
--- a/ChangeLog
28f7f8
+++ b/ChangeLog
28f7f8
@@ -1,3 +1,7 @@
28f7f8
+2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
28f7f8
+
28f7f8
+	* util/grub-mount.c: Extend GCC warning workaround to grub-mount.
28f7f8
+
28f7f8
 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
28f7f8
 
28f7f8
 	* grub-core/kern/efi/efi.c: Ensure that the result starts with /