You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
#1508
Closed
ryandesign opened this issue
Apr 24, 2024
· 2 comments
These warnings appear when compiling with clang on macOS 14:
post-process/post-process.c:386:39: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert(sublinkage->link_array[i].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
post-process/post-process.c:395:39: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert(sublinkage->link_array[j].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
post-process/post-process.c:521:43: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert (sublinkage->link_array[link].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
post-process/post-process.c:720:43: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert (sublinkage->link_array[link].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
post-process/post-process.c:818:43: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert (sublinkage->link_array[link].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
post-process/post-process.c:1020:36: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert(linkage->link_array[i].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
print/print.c:365:25: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
assert (ppla[link].lw != SIZE_MAX, "Missing word in link");
~~~~~~~~~~~~~ ^ ~~~~~~~~
print/print.c:438:18: warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
mv -f $depbase.Tpo $depbase.Plo
assert(lnk->lw != SIZE_MAX, "Missing word in link");
~~~~~~~ ^ ~~~~~~~~
The text was updated successfully, but these errors were encountered:
These warnings appear when compiling with clang on macOS 14:
The text was updated successfully, but these errors were encountered: