diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 52dd90e097..fddec476cf 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 2094022c84..f4b1ccb392 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 ce2e2b7257..6c17fac363 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 83b1a057bd..745bdbd86e 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 cd5a4803bb..e4545d9f87 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"); } }