Skip to content

Fixed MessageCallback error message while MINGW building.#117

Open
BillKek wants to merge 5 commits intotsoding:masterfrom
BillKek:master
Open

Fixed MessageCallback error message while MINGW building.#117
BillKek wants to merge 5 commits intotsoding:masterfrom
BillKek:master

Conversation

@BillKek
Copy link
Contributor

@BillKek BillKek commented Jul 20, 2021

Showed windows batch-file execution log for msys2 building.
Showed in CI error code for windows batch-file execution.

BillKek added 5 commits July 21, 2021 00:56
Removes fatal error:
```
In file included from src/something.cpp:43:
src/./something_main.cpp: In function 'int SDL_main(int, char**)':
src/./something_main.cpp:108:32: error: invalid conversion from 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, const void*)' {aka 'void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*)'} to 'GLDEBUGPROC' {aka 'void (__attribute__((stdcall)) *)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*)'} [-fpermissive]
  108 |         glDebugMessageCallback(MessageCallback, 0);
      |                                ^~~~~~~~~~~~~~~
      |                                |
      |                                void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, const void*) {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*)}
```
But msys shell puts output in CI logs. This is very useful for developing.
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