Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): fix warnings reported by scan-build (clang)
tslibxstrton_agetollint.c:44:3: warning: The left operand of '!=' is a garbage value [core.UndefinedBinaryOperatorResult] 44 | TEST_ASSERT_EQUAL_NUMERIC (result, data->expect_value); | ^ ~~~~~~ ../include/testutils.h:59:16: note: expanded from macro 'TEST_ASSERT_EQUAL_NUMERIC' 59 | do { if ((A) != (B)) ret = -1; } while (0) | ~ ^ tslibxstrton_sizetollint.c:44:3: warning: The left operand of '!=' is a garbage value [core.UndefinedBinaryOperatorResult] 44 | TEST_ASSERT_EQUAL_NUMERIC (result, data->expect_value); | ^ ~~~~~~ ../include/testutils.h:59:16: note: expanded from macro 'TEST_ASSERT_EQUAL_NUMERIC' 59 | do { if ((A) != (B)) ret = -1; } while (0) | ~ ^ Signed-off-by: Davide Madrisan <[email protected]>
- Loading branch information