mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Address switch enum warning with newer clang versions.
This commit is contained in:
parent
7fe6e5fb9a
commit
f18b00992b
@ -26,6 +26,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
|
|||||||
-Werror
|
-Werror
|
||||||
-Wno-float-equal
|
-Wno-float-equal
|
||||||
-Wno-padded
|
-Wno-padded
|
||||||
|
-Wno-covered-switch-default
|
||||||
)
|
)
|
||||||
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
||||||
list(APPEND custom_compiler_flags
|
list(APPEND custom_compiler_flags
|
||||||
|
@ -803,6 +803,7 @@ void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
|
|||||||
is_trait = !isinf(actual) && !isnan(actual);
|
is_trait = !isinf(actual) && !isnan(actual);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case UNITY_FLOAT_INVALID_TRAIT:
|
||||||
default:
|
default:
|
||||||
trait_index = 0;
|
trait_index = 0;
|
||||||
trait_names[0] = UnityStrInvalidFloatTrait;
|
trait_names[0] = UnityStrInvalidFloatTrait;
|
||||||
@ -933,6 +934,7 @@ void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,
|
|||||||
is_trait = !isinf(actual) && !isnan(actual);
|
is_trait = !isinf(actual) && !isnan(actual);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case UNITY_FLOAT_INVALID_TRAIT:
|
||||||
default:
|
default:
|
||||||
trait_index = 0;
|
trait_index = 0;
|
||||||
trait_names[0] = UnityStrInvalidFloatTrait;
|
trait_names[0] = UnityStrInvalidFloatTrait;
|
||||||
|
Loading…
Reference in New Issue
Block a user