Robert Marko 4a6911fe79 tools/sed: fix compilation on macOS 14
Current sed 4.8 in 22.03 will fail to compile when using macOS 14 with:
depbase=`echo lib/obstack.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.  -I. -I./lib -I./lib -I./sed -I/Volumes/OpenWrt/openwrt/staging_dir/host/include   -O2 -I/Volumes/OpenWrt/openwrt/staging_dir/host/include  -MT lib/obstack.o -MD -MP -MF $depbase.Tpo -c -o lib/obstack.o lib/obstack.c &&\
mv -f $depbase.Tpo $depbase.Po
lib/obstack.c:351:31: error: incompatible function pointer types initializing 'void (*)(void) __attribute__((noreturn))' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types]
__attribute_noreturn__ void (*obstack_alloc_failed_handler) (void)
                              ^
1 error generated.
make[5]: *** [Makefile:2781: lib/obstack.o] Error 1

Backporting gnulib commit ("obstack: Fix a clang warning") fixes this.

Fixes: #15270
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-04-27 15:14:06 +02:00
..
2022-02-24 15:36:28 +01:00
2023-09-27 17:30:45 +02:00
2023-04-27 21:02:10 +02:00
2022-01-27 13:38:48 +01:00
2022-12-06 23:29:14 +01:00
2022-03-13 19:24:13 +01:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2023-09-27 17:30:45 +02:00
2020-03-14 13:20:06 +00:00
2021-10-21 20:37:20 +01:00
2023-09-27 17:30:45 +02:00
2021-09-20 15:21:17 +02:00
2022-10-03 19:51:50 +02:00
2022-03-01 00:08:08 +01:00
2020-11-21 18:49:27 +01:00
2020-08-23 19:40:32 +02:00
2023-09-27 17:30:45 +02:00
2022-04-15 14:12:18 +01:00
2020-09-02 16:29:22 +02:00
2022-02-25 14:12:39 +01:00
2021-09-20 15:21:17 +02:00
2021-09-20 15:21:17 +02:00
2021-09-05 21:26:48 +02:00
2020-04-09 22:09:13 +02:00
2023-09-27 17:30:45 +02:00
2022-03-01 00:08:08 +01:00
2023-11-21 00:38:36 +01:00