Skip to content

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

Description

@domWalters

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:
      |             ^~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions