[PATCH] Fix warning in memrchr.c
Federico Terraneo
fede.tft@hotmail.it
Sun Mar 22 13:40:38 GMT 2026
Hi,
the following patch fixes the warning reproted below, introduced by our
previous patch.
Best regards,
Federico Terraneo
../../../newlib-4.6.0.20260123/newlib/libc/string/memrchr.c:50:26:
warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
50 | while (UNALIGNED_X(src + 1))
../../../newlib-4.6.0.20260123/newlib/libc/string/local.h:24:31: note:
in definition of macro 'UNALIGNED_X'
24 | #define UNALIGNED_X(X) ((long)X & (sizeof (long) - 1))
| ^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libc-string-Fix-warning-in-memrchr.c.patch
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20260322/fe1f59f6/attachment.bin>
More information about the Newlib
mailing list