101-fix-pedantic.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. From 631ada7ea21c9a8f389ce0448ae05e0881264fec Mon Sep 17 00:00:00 2001
  2. From: Steven Barth <[email protected]>
  3. Date: Wed, 24 Jun 2015 20:13:37 +0200
  4. Subject: [PATCH] Add __extension__ mark to include_next to silence -pedantic
  5. Signed-off-by: Steven Barth <[email protected]>
  6. ---
  7. include/poll.h | 1 +
  8. include/stdio.h | 1 +
  9. include/stdlib.h | 2 ++
  10. include/string.h | 1 +
  11. include/sys/select.h | 1 +
  12. include/sys/socket.h | 1 +
  13. include/unistd.h | 1 +
  14. include/wchar.h | 2 ++
  15. 8 files changed, 10 insertions(+)
  16. diff --git a/include/poll.h b/include/poll.h
  17. index d9b602c..9e1d99a 100644
  18. --- a/include/poll.h
  19. +++ b/include/poll.h
  20. @@ -16,6 +16,7 @@
  21. #ifndef _FORTIFY_POLL_H
  22. #define _FORTIFY_POLL_H
  23. +__extension__
  24. #include_next <poll.h>
  25. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  26. diff --git a/include/stdio.h b/include/stdio.h
  27. index 996c661..1b76f82 100644
  28. --- a/include/stdio.h
  29. +++ b/include/stdio.h
  30. @@ -16,6 +16,7 @@
  31. #ifndef _FORTIFY_STDIO_H
  32. #define _FORTIFY_STDIO_H
  33. +__extension__
  34. #include_next <stdio.h>
  35. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  36. diff --git a/include/stdlib.h b/include/stdlib.h
  37. index 2b67235..f89341f 100644
  38. --- a/include/stdlib.h
  39. +++ b/include/stdlib.h
  40. @@ -16,9 +16,11 @@
  41. #ifndef _FORTIFY_STDLIB_H
  42. #define _FORTIFY_STDLIB_H
  43. +__extension__
  44. #include_next <stdlib.h>
  45. #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  46. +__extension__
  47. #include_next <limits.h>
  48. #endif
  49. diff --git a/include/string.h b/include/string.h
  50. index 98bfea1..a4072d6 100644
  51. --- a/include/string.h
  52. +++ b/include/string.h
  53. @@ -16,6 +16,7 @@
  54. #ifndef _FORTIFY_STRING_H
  55. #define _FORTIFY_STRING_H
  56. +__extension__
  57. #include_next <string.h>
  58. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  59. diff --git a/include/sys/select.h b/include/sys/select.h
  60. index db6135d..7f768f4 100644
  61. --- a/include/sys/select.h
  62. +++ b/include/sys/select.h
  63. @@ -16,6 +16,7 @@
  64. #ifndef _FORTIFY_SYS_SELECT_H
  65. #define _FORTIFY_SYS_SELECT_H
  66. +__extension__
  67. #include_next <sys/select.h>
  68. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  69. diff --git a/include/sys/socket.h b/include/sys/socket.h
  70. index e68e21c..9454951 100644
  71. --- a/include/sys/socket.h
  72. +++ b/include/sys/socket.h
  73. @@ -16,6 +16,7 @@
  74. #ifndef _FORTIFY_SYS_SOCKET_H
  75. #define _FORTIFY_SYS_SOCKET_H
  76. +__extension__
  77. #include_next <sys/socket.h>
  78. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  79. diff --git a/include/unistd.h b/include/unistd.h
  80. index 5274e22..5fa3b44 100644
  81. --- a/include/unistd.h
  82. +++ b/include/unistd.h
  83. @@ -16,6 +16,7 @@
  84. #ifndef _FORTIFY_UNISTD_H
  85. #define _FORTIFY_UNISTD_H
  86. +__extension__
  87. #include_next <unistd.h>
  88. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  89. diff --git a/include/wchar.h b/include/wchar.h
  90. index 6fa86f2..0d4abfa 100644
  91. --- a/include/wchar.h
  92. +++ b/include/wchar.h
  93. @@ -16,7 +16,9 @@
  94. #ifndef _FORTIFY_WCHAR_H
  95. #define _FORTIFY_WCHAR_H
  96. +__extension__
  97. #include_next <stdlib.h>
  98. +__extension__
  99. #include_next <wchar.h>
  100. #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
  101. --
  102. 2.1.4