warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]
ryandesign opened this issue · 0 comments
ryandesign commented
Building the latest code from the repo on Linux with cmake (which uses -Wall -Wextra
) and g++ 11.4.0, I get this warning:
.../CLK/Machines/Apple/AppleIIgs/MemoryMap.hpp: In member function ‘bool Apple::IIgs::MemoryMap::is_shadowed(const Apple::IIgs::MemoryMap::Region&, uint32_t) const’:
.../CLK/Machines/Apple/AppleIIgs/MemoryMap.hpp:80:41: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]
80 | assert(physical >= 0 && physical <= 0xff'ffff);
| ~~~~~~~~~^~~~