nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0057-util-grub-mkrescue.c-Build-fix-for-argp.h-with-older.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Vladimir Serbinenko <phcoder@gmail.com>
f725e3
Date: Mon, 3 Feb 2014 14:35:51 +0100
f725e3
Subject: [PATCH] * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
f725e3
f725e3
---
f725e3
 util/grub-mkrescue.c | 4 ++++
f725e3
 ChangeLog            | 4 ++++
f725e3
 2 files changed, 8 insertions(+)
f725e3
f725e3
diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
f725e3
index 34e0b7affb1..e719839820b 100644
f725e3
--- a/util/grub-mkrescue.c
f725e3
+++ b/util/grub-mkrescue.c
f725e3
@@ -25,7 +25,11 @@
f725e3
 #include <grub/emu/exec.h>
f725e3
 #include <grub/emu/config.h>
f725e3
 #include <grub/emu/hostdisk.h>
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 <sys/types.h>
f725e3
 #include <sys/wait.h>
f725e3
diff --git a/ChangeLog b/ChangeLog
f725e3
index f2bba8402c5..f4a472144b1 100644
f725e3
--- a/ChangeLog
f725e3
+++ b/ChangeLog
f725e3
@@ -1,3 +1,7 @@
f725e3
+2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
f725e3
+
f725e3
+	* util/grub-mkrescue.c: Build fix for argp.h with older gcc.
f725e3
+
f725e3
 2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
f725e3
 
f725e3
 	* util/grub-mkfont.c: Build fix for argp.h with older gcc.