Skip to content

Fix the "redundant redeclaration" warning for __debugbreak when using MinGW#14264

Open
rfomin wants to merge 2 commits intolibsdl-org:mainfrom
rfomin:mingw_debugbreak
Open

Fix the "redundant redeclaration" warning for __debugbreak when using MinGW#14264
rfomin wants to merge 2 commits intolibsdl-org:mainfrom
rfomin:mingw_debugbreak

Conversation

@rfomin
Copy link
Copy Markdown
Contributor

@rfomin rfomin commented Oct 17, 2025

The MinGW header implementation of __debugbreak triggers a warning when built with the "-Wredundant-decls" option. This has been tested with MSYS2 UCRT64 GCC.

Test program:

#include <stdlib.h>
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
int main(int argc, char **argv)
{
    return 0;
}

Existing Issue(s)

#14263

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant