mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-27 21:48:29 +00:00
Remove some extra semicolons
This commit is contained in:

committed by
Ozkan Sezer

parent
345cae361d
commit
457d0edeaf
@@ -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) {
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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 };
|
||||
|
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user