Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes nuttx target warning #4984

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions targets/os/nuttx/jerry-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ print_help (char *name)
* @return converted number
*/
static uint32_t
str_to_uint (const char *num_str_p, /**< string to convert */
char **out_p) /**< [out] end of the number */
str_to_uint (const char *num_str_p) /**< string to convert */
{
assert (jerry_feature_enabled (JERRY_FEATURE_ERROR_MESSAGES));

Expand All @@ -84,11 +83,6 @@ str_to_uint (const char *num_str_p, /**< string to convert */
num_str_p++;
}

if (out_p != NULL)
{
*out_p = num_str_p;
}

return result;
} /* str_to_uint */

Expand Down Expand Up @@ -176,7 +170,7 @@ jerry_main (int argc, char *argv[])
{
if (++i < argc)
{
debug_port = str_to_uint (argv[i], NULL);
debug_port = str_to_uint (argv[i]);
}
else
{
Expand Down