From 457d0edeaf9dd989fb9a3a2f5b950a81007d175d Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Thu, 26 Sep 2024 17:08:44 +0200
Subject: [PATCH] Remove some extra semicolons
---
src/audio/SDL_audio.c | 2 +-
src/hidapi/libusb/hid.c | 2 +-
src/hidapi/linux/hid.c | 2 +-
src/render/vulkan/SDL_render_vulkan.c | 2 +-
src/video/SDL_video.c | 6 +++---
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
index 52dd90e09758b..fddec476cf07b 100644
--- a/src/audio/SDL_audio.c
+++ b/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) {
diff --git a/src/hidapi/libusb/hid.c b/src/hidapi/libusb/hid.c
index 2094022c842db..f4b1ccb39294b 100644
--- a/src/hidapi/libusb/hid.c
+++ b/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;
}
diff --git a/src/hidapi/linux/hid.c b/src/hidapi/linux/hid.c
index ce2e2b72572ae..6c17fac363844 100644
--- a/src/hidapi/linux/hid.c
+++ b/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;
diff --git a/src/render/vulkan/SDL_render_vulkan.c b/src/render/vulkan/SDL_render_vulkan.c
index 83b1a057bdf91..745bdbd86efa3 100644
--- a/src/render/vulkan/SDL_render_vulkan.c
+++ b/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 };
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index cd5a4803bbe6d..e4545d9f87d21 100644
--- a/src/video/SDL_video.c
+++ b/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");
}
}