dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0056-util-grub-mkfont.c-Build-fix-for-argp.h-with-older-g.patch

4fe85b
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
4fe85b
From: Vladimir Serbinenko <phcoder@gmail.com>
4fe85b
Date: Mon, 3 Feb 2014 14:34:27 +0100
4fe85b
Subject: [PATCH] * util/grub-mkfont.c: Build fix for argp.h with older gcc.
4fe85b
4fe85b
---
4fe85b
 util/grub-mkfont.c | 4 ++++
4fe85b
 ChangeLog          | 4 ++++
4fe85b
 2 files changed, 8 insertions(+)
4fe85b
4fe85b
diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c
4fe85b
index 3de07ee9c06..e6485b40f28 100644
4fe85b
--- a/util/grub-mkfont.c
4fe85b
+++ b/util/grub-mkfont.c
4fe85b
@@ -33,7 +33,11 @@
4fe85b
 
4fe85b
 #ifndef GRUB_BUILD
4fe85b
 #define _GNU_SOURCE	1
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
 #endif
4fe85b
 #include <assert.h>
4fe85b
 
4fe85b
diff --git a/ChangeLog b/ChangeLog
4fe85b
index 1a822f3d2f2..f2bba8402c5 100644
4fe85b
--- a/ChangeLog
4fe85b
+++ b/ChangeLog
4fe85b
@@ -1,3 +1,7 @@
4fe85b
+2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
4fe85b
+
4fe85b
+	* util/grub-mkfont.c: Build fix for argp.h with older gcc.
4fe85b
+
4fe85b
 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
4fe85b
 
4fe85b
 	* grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to