]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Fix clang build after 1c588a2187 master
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Dec 2025 14:42:18 +0000 (14:42 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Dec 2025 18:55:34 +0000 (15:55 -0300)
commitbd569425330c6f5644c232b4b253e9ab905fcdba
treee5dcbf153e394ff6fabdad58850c26d90d053ce0
parentd8561d15529d653fe4460c084dbd2580772bb1ee
malloc: Fix clang build after 1c588a2187

clang issues:

malloc.c:1909:8: error: converting the result of '<<' to a boolean always evaluates to true [-Werror,-Wtautological-constant-compare]
 1909 |   if (!DEFAULT_THP_PAGESIZE || mp_.thp_mode != malloc_thp_mode_not_supported)
      |        ^
../sysdeps/unix/sysv/linux/aarch64/malloc-hugepages.h:19:35: note: expanded from macro 'DEFAULT_THP_PAGESIZE'
   19 | #define DEFAULT_THP_PAGESIZE    (1UL << 21)

Checked on aarch64-linux-gnu.
malloc/malloc.c