Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1 of 3] host-acl: build fix on RHEL6 hosts (GCC 4.4.7)
@ 2018-07-19 17:20 Hollis Blanchard
  2018-07-19 17:20 ` [Buildroot] [PATCH 2 of 3] host-attr: build fix for " Hollis Blanchard
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hollis Blanchard @ 2018-07-19 17:20 UTC (permalink / raw)
  To: buildroot

This didn't introduce any build warnings, FWIW.

Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>

diff --git a/package/acl/0001-pragma-gcc-diagnostic-in-fn.patch b/package/acl/0001-pragma-gcc-diagnostic-in-fn.patch
new file mode 100644
--- /dev/null
+++ b/package/acl/0001-pragma-gcc-diagnostic-in-fn.patch
@@ -0,0 +1,21 @@
+build with old GCC versions
+
+GCC 4.4.7, as found in RHEL6, reports:
+	libacl/acl_from_text.c:307: error: #pragma GCC diagnostic not allowed inside functions
+
+Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
+
+--- host-acl-2.2.53/libacl/acl_from_text.c.orig	2018-07-19 09:15:40.425940094 -0700
++++ host-acl-2.2.53/libacl/acl_from_text.c	2018-07-19 09:15:50.777940093 -0700
+@@ -304,11 +304,8 @@
+ create_entry:
+ 	if (acl_create_entry(acl_p, &entry_d) != 0)
+ 		return -1;
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Waddress"
+ 	if (acl_copy_entry(entry_d, int2ext(&entry_obj)) != 0)
+ 		return -1;
+-#pragma GCC diagnostic pop
+ 	return 0;
+ 
+ fail:

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-30 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-19 17:20 [Buildroot] [PATCH 1 of 3] host-acl: build fix on RHEL6 hosts (GCC 4.4.7) Hollis Blanchard
2018-07-19 17:20 ` [Buildroot] [PATCH 2 of 3] host-attr: build fix for " Hollis Blanchard
2018-07-19 17:20 ` [Buildroot] [PATCH 3 of 3] libglib2: " Hollis Blanchard
2018-07-25 21:12 ` [Buildroot] [PATCH 1 of 3] host-acl: build fix on " Thomas Petazzoni
2018-07-25 22:10   ` Hollis Blanchard
2018-07-26  7:43     ` Thomas Petazzoni
2018-07-26  7:55       ` Arnout Vandecappelle
2018-07-27 19:30       ` [Buildroot] RHEL6 autobuilder Hollis Blanchard
2018-07-30 12:28         ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox