os: make nitpicker compatible to C++20

Avoid arithmetics on enum values, disambiguate '==' operator of
handle_registry.

Fixes #4875
This commit is contained in:
Norman Feske
2023-05-15 17:33:44 +02:00
committed by Christian Helmuth
parent f679864c23
commit 604d6bf567
4 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ struct Input::Session : Genode::Session
* session-object allocation, a dataspace capability for the input
* buffer, and its session capability.
*/
enum { CAP_QUOTA = 3 };
static constexpr unsigned CAP_QUOTA = 3;
virtual ~Session() { }