Fixes nuttx target warning (#4984)

The warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
Yonggang Luo
2024-12-17 17:17:57 +08:00
committed by GitHub
parent f0a249dfd3
commit f322f603f5
+2 -8
View File
@@ -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));
@@ -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 */
@@ -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
{