You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

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