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:
@@ -70,8 +70,7 @@ print_help (char *name)
|
|||||||
* @return converted number
|
* @return converted number
|
||||||
*/
|
*/
|
||||||
static uint32_t
|
static uint32_t
|
||||||
str_to_uint (const char *num_str_p, /**< string to convert */
|
str_to_uint (const char *num_str_p) /**< string to convert */
|
||||||
char **out_p) /**< [out] end of the number */
|
|
||||||
{
|
{
|
||||||
assert (jerry_feature_enabled (JERRY_FEATURE_ERROR_MESSAGES));
|
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++;
|
num_str_p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (out_p != NULL)
|
|
||||||
{
|
|
||||||
*out_p = num_str_p;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
} /* str_to_uint */
|
} /* str_to_uint */
|
||||||
|
|
||||||
@@ -176,7 +170,7 @@ jerry_main (int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (++i < argc)
|
if (++i < argc)
|
||||||
{
|
{
|
||||||
debug_port = str_to_uint (argv[i], NULL);
|
debug_port = str_to_uint (argv[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user