0001-Build-with-old-GCC-versions.patch 975 B

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