Skip to content

trunk warning for OOJoystickManager decodeButtonEvent #661

@LW-archlinux

Description

@LW-archlinux

oolite trunk 5ff4325

While compiling with gcc 16.1 this warning appears

src/Core/OOJoystickManager.m: In function ‘-[OOJoystickManager decodeButtonEvent:]’:
src/Core/OOJoystickManager.m:657:23: warning: comparison between ‘SDL_EventType’ and ‘enum <anonymous>’ [-Wenum-compare]
  657 |         if (evt->type == JOYBUTTONDOWN)
      |                       ^~

JOYBUTTONDOWN is defined in src/Core/OOJoystickManager.h .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions