Skip to content

Instantly share code, notes, and snippets.

@Milek7

Milek7/warnings Secret

Created January 17, 2021 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Milek7/a0d22d24f268d37bf7115d990647d8c6 to your computer and use it in GitHub Desktop.
Save Milek7/a0d22d24f268d37bf7115d990647d8c6 to your computer and use it in GitHub Desktop.
/home/milek7/OpenTTD/src/video/sdl2_default_v.cpp: In member function ‘virtual bool VideoDriver_SDL_Default::AllocateBackingStore(uint, uint, bool)’:
/home/milek7/OpenTTD/src/video/sdl2_default_v.cpp:198:25: warning: comparison of integer expressions of different signedness: ‘uint’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
198 | if (!force && w == _sdl_realscreen->w && h == _sdl_realscreen->h) return false;
| ~~^~~~~~~~~~~~~~~~~~~~~
/home/milek7/OpenTTD/src/video/sdl2_default_v.cpp:198:52: warning: comparison of integer expressions of different signedness: ‘uint’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
198 | if (!force && w == _sdl_realscreen->w && h == _sdl_realscreen->h) return false;
| ~~^~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment