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

23d2ea
From 5d3c633229d54d0e3825fe0a9775858a93a664a7 Mon Sep 17 00:00:00 2001
39700a
From: Vladimir Serbinenko <phcoder@gmail.com>
39700a
Date: Mon, 3 Feb 2014 14:35:51 +0100
27a4da
Subject: [PATCH 057/260] * util/grub-mkrescue.c: Build fix for argp.h with
23d2ea
 older gcc.
39700a
39700a
---
39700a
 ChangeLog            | 4 ++++
39700a
 util/grub-mkrescue.c | 4 ++++
39700a
 2 files changed, 8 insertions(+)
39700a
39700a
diff --git a/ChangeLog b/ChangeLog
27a4da
index f2bba8402..f4a472144 100644
39700a
--- a/ChangeLog
39700a
+++ b/ChangeLog
39700a
@@ -1,5 +1,9 @@
39700a
 2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
39700a
 
39700a
+	* util/grub-mkrescue.c: Build fix for argp.h with older gcc.
39700a
+
39700a
+2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
39700a
+
39700a
 	* util/grub-mkfont.c: Build fix for argp.h with older gcc.
39700a
 
39700a
 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
39700a
diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
27a4da
index 34e0b7aff..e71983982 100644
39700a
--- a/util/grub-mkrescue.c
39700a
+++ b/util/grub-mkrescue.c
39700a
@@ -25,7 +25,11 @@
39700a
 #include <grub/emu/exec.h>
39700a
 #include <grub/emu/config.h>
39700a
 #include <grub/emu/hostdisk.h>
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 <sys/types.h>
39700a
 #include <sys/wait.h>
39700a
-- 
27a4da
2.13.0
39700a