Просмотр исходного кода

input_common: Fix build with sdl disabled

german77 5 лет назад
Родитель
Сommit
289f59dabd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/input_common/main.cpp

+ 2 - 2
src/input_common/main.cpp

@@ -294,8 +294,8 @@ void InputSubsystem::ReloadInputDevices() {
     impl->udp->ReloadSockets();
     impl->udp->ReloadSockets();
 }
 }
 
 
-std::vector<std::unique_ptr<Polling::DevicePoller>> InputSubsystem::GetPollers(
-    Polling::DeviceType type) const {
+std::vector<std::unique_ptr<Polling::DevicePoller>> InputSubsystem::GetPollers([
+    [maybe_unused]] Polling::DeviceType type) const {
 #ifdef HAVE_SDL2
 #ifdef HAVE_SDL2
     return impl->sdl->GetPollers(type);
     return impl->sdl->GetPollers(type);
 #else
 #else