Fix issues revealed by cppcheck 1.83 (#2355)
A more recent cppcheck has revealed some extra issues not detected by the old one running on CI. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
+1
-1
@@ -362,7 +362,7 @@ cli_print_help (const char *help) /**< the help message to print */
|
||||
cli_print_prefix (help, length);
|
||||
|
||||
help += length;
|
||||
while (*help == ' ' && *help != 0)
|
||||
while (*help == ' ')
|
||||
{
|
||||
help++;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ print_unhandled_exception (jerry_value_t error_value) /**< error value */
|
||||
|
||||
if (str_size >= 256)
|
||||
{
|
||||
printf ("%3d: [Backtrace string too long]\n", i);
|
||||
printf ("%3u: [Backtrace string too long]\n", i);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -129,7 +129,7 @@ print_unhandled_exception (jerry_value_t error_value) /**< error value */
|
||||
assert (string_end == str_size);
|
||||
err_str_buf[string_end] = 0;
|
||||
|
||||
printf ("%3d: %s\n", i, err_str_buf);
|
||||
printf ("%3u: %s\n", i, err_str_buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user