Bug#983994: bloboats: ftbfs with GCC-11

Nilesh Patra nilesh at debian.org
Fri Mar 5 18:18:53 GMT 2021


The following patch seems to fix it. If seems appropriate, please consider applying

Thanks,
Nilesh


--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -1567,7 +1567,7 @@
     // Get resolutions
     vector<Resolution> resolutions;
     SDL_Rect** modes = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE|SDL_OPENGL);
-    if(modes > 0) {
+    if(modes != 0) {
         Uint32 bpp = SDL_GetVideoInfo()->vfmt->BitsPerPixel;
         for(int i=0; modes[i] && i < 10; ++i) {
             Resolution resolution;



More information about the Pkg-games-devel mailing list