Fixes warnings found by Clang static analyser

Also removes annotations in the code to avoid warnings which don't appear to
be needed.
This commit is contained in:
Simon Butcher 2016-05-23 23:18:26 +01:00
parent 768594d772
commit 65b1fa6b07
3 changed files with 7 additions and 15 deletions

View file

@ -83,6 +83,7 @@ int dep_check( char *str )
return( 1 );
DEP_CHECK_CODE
#line !LINE_NO! "main_test.function"
return( DEPENDENCY_NOT_SUPPORTED );
}
@ -96,8 +97,12 @@ int dispatch_test(int cnt, char *params[50])
#if defined(TEST_SUITE_ACTIVE)
ret = DISPATCH_TEST_SUCCESS;
// Cast to void to avoid compiler warnings
(void)ret;
DISPATCH_FUNCTION
{
#line !LINE_NO! "main_test.function"
mbedtls_fprintf( stdout,
"FAILED\nSkipping unknown test function '%s'\n",
params[0] );