Parentheses added to HASZERO macro to avoid a GCC warning.
Obtained from: musl (snapshot at commit c648cefb)
Sponsored by: The FreeBSD Foundation
Differential D17631
libc: Use musl's optimized memchr emaste on Oct 20 2018, 10:29 PM. Authored by Tags None Referenced Files
Subscribers
Details
Parentheses added to HASZERO macro to avoid a GCC warning. Obtained from: musl (snapshot at commit c648cefb)
Diff Detail
Event TimelineComment Actions Update with musl 4d0a82170a25464c39522d7190b9fe302045ddb2: fix aliasing-based undefined behavior in string functions use the GNU C may_alias attribute if available, and fallback to naive byte-by-byte loops if __GNUC__ is not defined. this patch has been written to minimize changes so that history remains reviewable; it does not attempt to bring the affected code into a more consistent or elegant form. FreeBSD is presumably built only with GCC or Clang (which also defines __GNUC__) so this should have no effect but is preferable. |