Skip to content

fails with gcc 15 #20

@pgajdos

Description

@pgajdos
/home/abuild/rpmbuild/BUILD/yamagi-quake2-ctf-1.10-build/quake2-ctf-1.10/src/menu/../header/shared.h:40:15: error: cannot use keyword ‘false’ as enumeration constant
   40 | typedef enum {false, true}  qboolean;
      |               ^~~~~
/home/abuild/rpmbuild/BUILD/yamagi-quake2-ctf-1.10-build/quake2-ctf-1.10/src/menu/../header/shared.h:40:15: note: ‘false’ is a keyword with ‘-std=c23’ onwards

Perhaps:

#include <stdbool.h>
typedef bool qboolean;

would do the trick?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions