Browse Source

android: fix some compiler warnings

Amir 2 years ago
parent
commit
7f415ce587
2 changed files with 1 additions and 2 deletions
  1. 0 1
      src/joystick/hidapi/SDL_hidapi_wii.c
  2. 1 1
      src/render/opengles2/SDL_shaders_gles2.h

+ 0 - 1
src/joystick/hidapi/SDL_hidapi_wii.c

@@ -730,7 +730,6 @@ UpdateDeviceIdentity(SDL_HIDAPI_Device *device)
         case k_eWiiExtensionControllerType_Gamepad:
             name = "Nintendo Wii Remote with Classic Controller";
             break;
-            break;
         case k_eWiiExtensionControllerType_WiiUPro:
             name = "Nintendo Wii U Pro Controller";
             break;

+ 1 - 1
src/render/opengles2/SDL_shaders_gles2.h

@@ -63,7 +63,7 @@ typedef enum
 
 const Uint8 *GLES2_GetShader(GLES2_ShaderType type);
 const Uint8 *GLES2_GetShaderInclude(GLES2_ShaderIncludeType type);
-GLES2_ShaderIncludeType GLES2_GetTexCoordPrecisionEnumFromHint();
+GLES2_ShaderIncludeType GLES2_GetTexCoordPrecisionEnumFromHint(void);
 
 #endif /* SDL_VIDEO_RENDER_OGL_ES2 */