Explorar o código

bootmanager: Return value in impossible case

The setting is ranged, so this return statement is unreachable.
But GCC can't tell I guess.
lat9nq %!s(int64=3) %!d(string=hai) anos
pai
achega
29a56496bf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/yuzu/bootmanager.cpp

+ 1 - 0
src/yuzu/bootmanager.cpp

@@ -163,6 +163,7 @@ public:
             case Settings::VSyncMode::Mailbox:
                 return 2;
             }
+            return 0;
         }();
 
         format.setSwapInterval(main_surface ? swap_interval : 0);