blob: a07bb15aa1dba0fd9541049d4ca13067abb956a9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 9ee4b9bd8df55ebbd5f6426fda4a36e1958b64c5 Mon Sep 17 00:00:00 2001
2From: Matthias Van Parys <matthias.vanparys@softathome.com>
3Date: Mon, 10 Jul 2023 14:31:05 +0200
4Subject: [PATCH] strings.h: Add __extension__ mark to include_next to silence
5 -pedantic
6
7Add __extension__ before #include-next in strings.h as was done for all other header files in commits
87fd984fcb532be01f68cddc194c09a7ca10c1ea6 and a9ffac8596b094da8563aa5dd5d81c946670afe
9---
10 include/strings.h | 3 +++
11 1 file changed, 3 insertions(+)
12
13--- a/include/strings.h
14+++ b/include/strings.h
15@@ -16,6 +16,9 @@
16 #ifndef _FORTIFY_STRINGS_H
17 #define _FORTIFY_STRINGS_H
18
19+#ifndef __cplusplus
20+__extension__
21+#endif
22 #include_next <strings.h>
23
24 #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0