Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Jan 16, 2025
1 parent 455a466 commit d5d9173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Source/UnitTest/cmake_core.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ target_compile_options(${ASTCENC_TEST}
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-float-equal>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-overriding-option>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unsafe-buffer-usage>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-switch-default>

# Ignore things that the googletest build triggers
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unknown-warning-option>
Expand Down
3 changes: 1 addition & 2 deletions Source/astcenc_internal.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d5d9173

Please sign in to comment.