dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

0dc71c
From 3365d3eb4062cee9581f3560ec3e93f8c8ababb2 Mon Sep 17 00:00:00 2001
0dc71c
From: Vladimir Serbinenko <phcoder@gmail.com>
0dc71c
Date: Mon, 3 Feb 2014 14:35:51 +0100
0dc71c
Subject: [PATCH 057/143] 	* util/grub-mkrescue.c: Build fix for argp.h
0dc71c
 with older gcc.
0dc71c
0dc71c
---
0dc71c
 ChangeLog            | 4 ++++
0dc71c
 util/grub-mkrescue.c | 4 ++++
0dc71c
 2 files changed, 8 insertions(+)
0dc71c
0dc71c
diff --git a/ChangeLog b/ChangeLog
0dc71c
index f2bba84..f4a4721 100644
0dc71c
--- a/ChangeLog
0dc71c
+++ b/ChangeLog
0dc71c
@@ -1,5 +1,9 @@
0dc71c
 2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
0dc71c
 
0dc71c
+	* util/grub-mkrescue.c: Build fix for argp.h with older gcc.
0dc71c
+
0dc71c
+2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
0dc71c
+
0dc71c
 	* util/grub-mkfont.c: Build fix for argp.h with older gcc.
0dc71c
 
0dc71c
 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
0dc71c
diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
0dc71c
index 34e0b7a..e719839 100644
0dc71c
--- a/util/grub-mkrescue.c
0dc71c
+++ b/util/grub-mkrescue.c
0dc71c
@@ -25,7 +25,11 @@
0dc71c
 #include <grub/emu/exec.h>
0dc71c
 #include <grub/emu/config.h>
0dc71c
 #include <grub/emu/hostdisk.h>
0dc71c
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
0dc71c
+#pragma GCC diagnostic ignored "-Wmissing-declarations"
0dc71c
 #include <argp.h>
0dc71c
+#pragma GCC diagnostic error "-Wmissing-prototypes"
0dc71c
+#pragma GCC diagnostic error "-Wmissing-declarations"
0dc71c
 
0dc71c
 #include <sys/types.h>
0dc71c
 #include <sys/wait.h>
0dc71c
-- 
0dc71c
1.9.3
0dc71c