mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
Clang 11 produces the following warning when building port_allocator.cc: port_allocator.cc:27:21: error: result of comparison of constant 65536 with expression of type 'const Genode::uint16_t' (aka 'const unsigned short') is always true [-Werror,-Wtautological-constant-out-of-range-compare] (port.value < (unsigned)(Port_allocator::FIRST + Basically the code compares Port::value (uint16_t) against a constant 65536 which is larger than UINT16_MAX (65535). This comparison will always be true. Issue #3984
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.