fortify-headers: add __extension__ mark to strings.h
[openwrt/staging/jow.git] / toolchain / fortify-headers / patches / 002-strings.h-add-__extension__-mark.patch
1 From 9ee4b9bd8df55ebbd5f6426fda4a36e1958b64c5 Mon Sep 17 00:00:00 2001
2 From: Matthias Van Parys <matthias.vanparys@softathome.com>
3 Date: Mon, 10 Jul 2023 14:31:05 +0200
4 Subject: [PATCH] strings.h: Add __extension__ mark to include_next to silence
5 -pedantic
6
7 Add __extension__ before #include-next in strings.h as was done for all other header files in commits
8 7fd984fcb532be01f68cddc194c09a7ca10c1ea6 and a9ffac8596b094da8563aa5dd5d81c946670afe
9 ---
10 include/strings.h | 3 +++
11 1 file changed, 3 insertions(+)
12
13 diff --git a/include/strings.h b/include/strings.h
14 index a16e1ad..d1902db 100644
15 --- a/include/strings.h
16 +++ b/include/strings.h
17 @@ -16,6 +16,9 @@
18 #ifndef _FORTIFY_STRINGS_H
19 #define _FORTIFY_STRINGS_H
20
21 +#ifndef __cplusplus
22 +__extension__
23 +#endif
24 #include_next <strings.h>
25
26 #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
27 --
28 2.34.1
29