mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-06 14:38:57 +01:00
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:
parent
768594d772
commit
65b1fa6b07
3 changed files with 7 additions and 15 deletions
|
|
@ -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] );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue