diff --git a/Source/UnitTest/cmake_core.cmake b/Source/UnitTest/cmake_core.cmake index cbf25afb..69e30f9b 100644 --- a/Source/UnitTest/cmake_core.cmake +++ b/Source/UnitTest/cmake_core.cmake @@ -66,6 +66,7 @@ target_compile_options(${ASTCENC_TEST} $<$>:-Wno-float-equal> $<$>:-Wno-overriding-option> $<$>:-Wno-unsafe-buffer-usage> + $<$>:-Wno-switch-default> # Ignore things that the googletest build triggers $<$>:-Wno-unknown-warning-option> diff --git a/Source/astcenc_internal.h b/Source/astcenc_internal.h index 0b1d9450..df6e07f9 100644 --- a/Source/astcenc_internal.h +++ b/Source/astcenc_internal.h @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // ---------------------------------------------------------------------------- -// Copyright 2011-2025 Arm Limited +// Copyright 2011-2024 Arm Limited // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy @@ -257,7 +257,6 @@ static inline unsigned int get_quant_level(quant_method method) case QUANT_160: return 160; case QUANT_192: return 192; case QUANT_256: return 256; - default: break; } // Unreachable - the enum is fully described