Browse Source

Remove some extra semicolons

Petar Popovic 6 months ago
parent
commit
457d0edeaf

+ 1 - 1
src/audio/SDL_audio.c

@@ -1588,7 +1588,7 @@ static void PrepareAudioFormat(bool recording, SDL_AudioSpec *spec)
     }
 
     if (spec->channels == 0) {
-        spec->channels = recording ? DEFAULT_AUDIO_RECORDING_CHANNELS : DEFAULT_AUDIO_PLAYBACK_CHANNELS;;
+        spec->channels = recording ? DEFAULT_AUDIO_RECORDING_CHANNELS : DEFAULT_AUDIO_PLAYBACK_CHANNELS;
 
         const char *hint = SDL_GetHint(SDL_HINT_AUDIO_CHANNELS);
         if (hint) {

+ 1 - 1
src/hidapi/libusb/hid.c

@@ -250,7 +250,7 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
 				/* Can't ever happen since size_code is & 0x3 */
 				data_len = 0;
 				break;
-			};
+			}
 			key_size = 1;
 		}
 

+ 1 - 1
src/hidapi/linux/hid.c

@@ -252,7 +252,7 @@ static int get_hid_item_size(const __u8 *report_descriptor, __u32 size, unsigned
 		*data_len = 0;
 		*key_size = 0;
 		break;
-	};
+	}
 
 	/* malformed report */
 	return 0;

+ 1 - 1
src/render/vulkan/SDL_render_vulkan.c

@@ -688,7 +688,7 @@ static VkResult VULKAN_AllocateBuffer(VULKAN_RenderData *rendererData, VkDeviceS
     if (!VULKAN_FindMemoryTypeIndex(rendererData, memoryRequirements.memoryTypeBits, requiredMemoryProps, desiredMemoryProps, &memoryTypeIndex)) {
         VULKAN_DestroyBuffer(rendererData, bufferOut);
         SDL_LogError(SDL_LOG_CATEGORY_RENDER, "VULKAN_FindMemoryTypeIndex failed.\n");
-        return VK_ERROR_UNKNOWN;;
+        return VK_ERROR_UNKNOWN;
     }
 
     VkMemoryAllocateInfo memoryAllocateInfo = { 0 };

+ 3 - 3
src/video/SDL_video.c

@@ -5048,13 +5048,13 @@ bool SDL_GL_GetSwapInterval(int *interval)
     *interval = 0;
 
     if (!_this) {
-        return SDL_SetError("no video driver");;
+        return SDL_SetError("no video driver");
     } else if (SDL_GL_GetCurrentContext() == NULL) {
-        return SDL_SetError("no current context");;
+        return SDL_SetError("no current context");
     } else if (_this->GL_GetSwapInterval) {
         return _this->GL_GetSwapInterval(_this, interval);
     } else {
-        return SDL_SetError("not implemented");;
+        return SDL_SetError("not implemented");
     }
 }