I have the following simple SDL code:
#include
#include
#include
// helpers
bool init(SDL_Window **win, SDL_Sur
I can confirm this. Same scenario. Even with -Wall
and -Wextra
the compiler did not spit out a redeclaration warning. Same for open()
.
I need an experts' opinion if this is a gcc bug.
close()
as a static function (e.g. static close()
). close()
function to something else (e.g. my_close_foo()
).Please rename your function
void close(SDL_Window **win, SDL_Surface **surf)
since close
is a standard C library function.