Remove some extra semicolons

This commit is contained in:
Petar Popovic
2024-09-26 17:08:44 +02:00
committed by Ozkan Sezer
parent 345cae361d
commit 457d0edeaf
5 changed files with 7 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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 };

View File

@@ -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");
}
}