Skip to content

Commit

Permalink
Merge pull request #680 from JamesB192/23g06-unhandled-enumeration
Browse files Browse the repository at this point in the history
Squash warnings about unhandled enumeration.
  • Loading branch information
mvandervoord authored Aug 16, 2023
2 parents 09075ea + e271a76 commit cb03c3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unity.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
is_trait = !isinf(actual) && !isnan(actual);
break;

case UNITY_FLOAT_INVALID_TRAIT: /* Supress warning */
default: /* including UNITY_FLOAT_INVALID_TRAIT */
trait_index = 0;
trait_names[0] = UnityStrInvalidFloatTrait;
Expand Down Expand Up @@ -1341,6 +1342,7 @@ void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,
is_trait = !isinf(actual) && !isnan(actual);
break;

case UNITY_FLOAT_INVALID_TRAIT: /* Supress warning */
default: /* including UNITY_FLOAT_INVALID_TRAIT */
trait_index = 0;
trait_names[0] = UnityStrInvalidFloatTrait;
Expand Down

0 comments on commit cb03c3a

Please sign in to comment.