Skip to content

gcc -Wmissing-braces warning in GIP_HandleCommandStatusDevice(): #12942

Closed
@sezero

Description

@sezero

From my gcc-4.9:

src/joystick/hidapi/SDL_hidapi_gip.c: In function 'GIP_HandleCommandStatusDevice':
src/joystick/hidapi/SDL_hidapi_gip.c:1305:5: warning: missing braces around initializer [-Wmissing-braces]
     GIP_ExtendedStatus status = {0};
     ^
src/joystick/hidapi/SDL_hidapi_gip.c:1305:5: warning: (near initialization for 'status.base') [-Wmissing-braces]

The warning is actually blah, but the local status is more of a blah:
Its fields are set but I can't see what it is actually really used for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions