Skip to content

Commit 0f07adf

Browse files
authored
Merge pull request #202 from kroesche/feature/fix_exclude_fp_warnings
Fix warnings if you use UNITY_EXCLUDE_FLOAT
2 parents 7dc17ef + f2f073d commit 0f07adf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unity.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ static const char UnityStrDelta[] = " Values Not Within Delta "
3636
static const char UnityStrPointless[] = " You Asked Me To Compare Nothing, Which Was Pointless.";
3737
static const char UnityStrNullPointerForExpected[] = " Expected pointer to be NULL";
3838
static const char UnityStrNullPointerForActual[] = " Actual pointer was NULL";
39+
#ifndef UNITY_EXCLUDE_FLOAT
3940
static const char UnityStrNot[] = "Not ";
4041
static const char UnityStrInf[] = "Infinity";
4142
static const char UnityStrNegInf[] = "Negative Infinity";
4243
static const char UnityStrNaN[] = "NaN";
4344
static const char UnityStrDet[] = "Determinate";
4445
static const char UnityStrInvalidFloatTrait[] = "Invalid Float Trait";
46+
#endif
4547
const char UnityStrErrFloat[] = "Unity Floating Point Disabled";
4648
const char UnityStrErrDouble[] = "Unity Double Precision Disabled";
4749
const char UnityStrErr64[] = "Unity 64-bit Support Disabled";

0 commit comments

Comments
 (0)