Fix GCC 0-length printf format string error

This commit is contained in:
Andres Amaya Garcia 2018-10-29 18:52:59 +00:00
parent 2fdc2c299f
commit 5aca555391
2 changed files with 295 additions and 295 deletions

File diff suppressed because it is too large Load diff

View file

@ -39,7 +39,7 @@ while (my $line = <CONFIG_FILE>) {
$config_check .= "#if defined($name)\n"; $config_check .= "#if defined($name)\n";
$config_check .= " if( strcmp( \"$name\", config ) == 0 )\n"; $config_check .= " if( strcmp( \"$name\", config ) == 0 )\n";
$config_check .= " {\n"; $config_check .= " {\n";
$config_check .= " mbedtls_printf( MACRO_EXPANSION_TO_STR( $name ) );\n"; $config_check .= " mbedtls_printf( \"%s\", MACRO_EXPANSION_TO_STR( $name ) );\n";
$config_check .= " return( 0 );\n"; $config_check .= " return( 0 );\n";
$config_check .= " }\n"; $config_check .= " }\n";
$config_check .= "#endif /* $name */\n"; $config_check .= "#endif /* $name */\n";