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

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