xref: /OK3568_Linux_fs/buildroot/package/acl/0001-Build-with-old-GCC-versions.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From a42519dceef0493ece45538375ae1791313f16d3 Mon Sep 17 00:00:00 2001
2From: Hollis Blanchard <hollis_blanchard@mentor.com>
3Date: Mon, 30 Jul 2018 14:29:46 -0700
4Subject: [PATCH] Remove pragmas inside functions
5
6GCC 4.4.7, as found in RHEL6, reports:
7    libacl/acl_from_text.c:307: error: #pragma GCC diagnostic not allowed inside functions
8
9Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
10---
11 libacl/acl_from_text.c | 3 ---
12 1 file changed, 3 deletions(-)
13
14diff --git a/libacl/acl_from_text.c b/libacl/acl_from_text.c
15index 09790c9..fb6bc07 100644
16--- a/libacl/acl_from_text.c
17+++ b/libacl/acl_from_text.c
18@@ -304,11 +304,8 @@ parse_acl_entry(const char **text_p, acl_t *acl_p)
19 create_entry:
20 	if (acl_create_entry(acl_p, &entry_d) != 0)
21 		return -1;
22-#pragma GCC diagnostic push
23-#pragma GCC diagnostic ignored "-Waddress"
24 	if (acl_copy_entry(entry_d, int2ext(&entry_obj)) != 0)
25 		return -1;
26-#pragma GCC diagnostic pop
27 	return 0;
28
29 fail:
30--
312.13.0
32
33