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

Void function return

Clang: void function should not return void expression [-Wpedantic]
Max Seidenstücker 3 недель назад
Родитель
Сommit
144ab4ba99
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/video/openvr/SDL_openvrvideo.c

+ 1 - 1
src/video/openvr/SDL_openvrvideo.c

@@ -1038,7 +1038,7 @@ static SDL_FunctionPointer OVR_EGL_GetProcAddress(SDL_VideoDevice *_this, const
 }
 static void OVR_EGL_UnloadLibrary(SDL_VideoDevice *_this)
 {
-    return SDL_EGL_UnloadLibrary(_this);
+    SDL_EGL_UnloadLibrary(_this);
 }
 static SDL_GLContext OVR_EGL_CreateContext(SDL_VideoDevice *_this, SDL_Window * window)
 {