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

23d2ea
From 1e22128933aa895e18593039c5a70ecb4e081491 Mon Sep 17 00:00:00 2001
39700a
From: Vladimir Serbinenko <phcoder@gmail.com>
39700a
Date: Mon, 3 Feb 2014 14:34:27 +0100
27a4da
Subject: [PATCH 056/260] * util/grub-mkfont.c: Build fix for argp.h with older
23d2ea
 gcc.
39700a
39700a
---
39700a
 ChangeLog          | 4 ++++
39700a
 util/grub-mkfont.c | 4 ++++
39700a
 2 files changed, 8 insertions(+)
39700a
39700a
diff --git a/ChangeLog b/ChangeLog
27a4da
index 1a822f3d2..f2bba8402 100644
39700a
--- a/ChangeLog
39700a
+++ b/ChangeLog
39700a
@@ -1,3 +1,7 @@
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
 
39700a
 	* grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
39700a
diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c
27a4da
index 3de07ee9c..e6485b40f 100644
39700a
--- a/util/grub-mkfont.c
39700a
+++ b/util/grub-mkfont.c
39700a
@@ -33,7 +33,11 @@
39700a
 
39700a
 #ifndef GRUB_BUILD
39700a
 #define _GNU_SOURCE	1
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
 #endif
39700a
 #include <assert.h>
39700a
 
39700a
-- 
27a4da
2.13.0
39700a