Our memrchr() implementation must cast away const from the 's'
parameter, which causes a compiler warning.  Locally suppress this
warning for the relevant cast.
---
 src/util.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/util.c b/src/util.c
index c110188d4fac..fc7f49899634 100644
--- a/src/util.c
+++ b/src/util.c
@@ -454,7 +454,10 @@ vasprintf( char **strp, const char *fmt, va_list ap )
 void *
 memrchr( const void *s, int c, size_t n )
 {
+DIAG_PUSH
+DIAG_DISABLE("-Wcast-qual")
        u_char *b = (u_char *)s, *e = b + n;
+DIAG_POP
 
        while (--e >= b)
                if (*e == c)

base-commit: 9aaac66286910f547ec3068d3fd72afb4fe716bf
-- 
2.50.1 (Apple Git-155)



_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to