Drop -Werror to fix the build with clang 15

This library is lagging behind upstream and has no consumer left.
Zap?
This commit is contained in:
jca 2023-01-10 18:01:44 +00:00
parent 01c47fff80
commit ad4707a639
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,14 @@
Drop -Werror
Index: configure
--- configure.orig
+++ configure
@@ -14091,7 +14091,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confde
# These options are GNU compiler specific.
if test "x$GCC" = "xyes"; then
- CPPFLAGS="-pedantic -Werror -Wall -Wc++-compat ${CPPFLAGS}"
+ CPPFLAGS="-pedantic -Wall -Wc++-compat ${CPPFLAGS}"
fi
if test "x$enable_shared" = "xyes"; then

View File

@ -0,0 +1,12 @@
Index: src/zloop.c
--- src/zloop.c.orig
+++ src/zloop.c
@@ -582,7 +582,7 @@ zloop_timer_end (zloop_t *self, int timer_id)
// from inside the poll loop. So, we hold the arg on the zombie
// list, and process that list when we're done executing timers.
// This hack lets us store an integer timer ID as a pointer
- zlistx_add_end (self->zombies, (byte *) NULL + timer_id);
+ zlistx_add_end (self->zombies, (void *)(uintptr_t)timer_id);
if (self->verbose)
zsys_debug ("zloop: cancel timer id=%d", timer_id);