daniele77 / cli

A library for interactive command line interfaces in modern C++
Boost Software License 1.0
1.24k stars 140 forks source link

gcc warning: EOF is less than minimum for type #243

Open domWalters opened 5 months ago

domWalters commented 5 months ago

I get this warning using a GCC 12.2.0 cross compiler for AArch64 (in particular, the gcc built in to Xilinx Vitis 2023.1):

In file included from daniele77-cli/include/cli/detail/keyboard.h:44,
                 from daniele77-cli/include/cli/clilocalsession.h:36,
                 from main.cc:9:
daniele77-cli/include/cli/detail/linuxkeyboard.h: In member function 'std::pair<cli::detail::KeyType, char> cli::detail::LinuxKeyboard::Get()':
daniele77-cli/include/cli/detail/linuxkeyboard.h:153:13: warning: case label value is less than minimum value for type [-Wswitch-outside-range]
  153 |             case EOF:
      |             ^~~~
daniele77 commented 4 months ago

Hi @domWalters , I think that this issue has already been solved. Please, try with the latest repository commit and let me know. Thanks,.