Remove FALLTHROUGH on empty cases

`#include "lib/code_annotation.h"` can be removed in some places.
This commit is contained in:
phosit
2025-01-29 12:47:21 +01:00
committed by phosit
parent 2fe7555002
commit 473f8ca72e
8 changed files with 47 additions and 50 deletions
+8 -8
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2024 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -37,19 +37,19 @@ uint32_t GetAttributeSize(const Renderer::Backend::Format format)
{
switch (format)
{
case Renderer::Backend::Format::R8G8B8A8_UNORM: FALLTHROUGH;
case Renderer::Backend::Format::R8G8B8A8_UNORM:
case Renderer::Backend::Format::R8G8B8A8_UINT:
return sizeof(u8) * 4;
case Renderer::Backend::Format::A8_UNORM:
return sizeof(u8);
case Renderer::Backend::Format::R16_UNORM: FALLTHROUGH;
case Renderer::Backend::Format::R16_UINT: FALLTHROUGH;
case Renderer::Backend::Format::R16_SINT: FALLTHROUGH;
case Renderer::Backend::Format::R16_UNORM:
case Renderer::Backend::Format::R16_UINT:
case Renderer::Backend::Format::R16_SINT:
case Renderer::Backend::Format::R16_SFLOAT:
return sizeof(u16);
case Renderer::Backend::Format::R16G16_UNORM: FALLTHROUGH;
case Renderer::Backend::Format::R16G16_UINT: FALLTHROUGH;
case Renderer::Backend::Format::R16G16_SINT: FALLTHROUGH;
case Renderer::Backend::Format::R16G16_UNORM:
case Renderer::Backend::Format::R16G16_UINT:
case Renderer::Backend::Format::R16G16_SINT:
case Renderer::Backend::Format::R16G16_SFLOAT:
return sizeof(u16) * 2;
case Renderer::Backend::Format::R16G16B16_SFLOAT: