Skip to content

Commit d5d9173

Browse files
committed
Fix warning
1 parent 455a466 commit d5d9173

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/UnitTest/cmake_core.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ target_compile_options(${ASTCENC_TEST}
6666
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-float-equal>
6767
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-overriding-option>
6868
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unsafe-buffer-usage>
69+
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-switch-default>
6970

7071
# Ignore things that the googletest build triggers
7172
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unknown-warning-option>

Source/astcenc_internal.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// ----------------------------------------------------------------------------
3-
// Copyright 2011-2025 Arm Limited
3+
// Copyright 2011-2024 Arm Limited
44
//
55
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
// 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)
257257
case QUANT_160: return 160;
258258
case QUANT_192: return 192;
259259
case QUANT_256: return 256;
260-
default: break;
261260
}
262261

263262
// Unreachable - the enum is fully described

0 commit comments

Comments
 (0)