Skip to content

Commit 79462de

Browse files
committed
Fixes nuttx target warning
``` jerry-main.c: In function 'str_to_uint': jerry-main.c:89:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 89 | *out_p = num_str_p; make[4]: Leaving directory '/home/runner/work/jerryscript/jerryscript/targets/os/nuttx' make[3]: Leaving directory '/home/runner/work/jerryscript/apps' ``` JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent d00f481 commit 79462de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/os/nuttx/jerry-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ print_help (char *name)
7171
*/
7272
static uint32_t
7373
str_to_uint (const char *num_str_p, /**< string to convert */
74-
char **out_p) /**< [out] end of the number */
74+
const char **out_p) /**< [out] end of the number */
7575
{
7676
assert (jerry_feature_enabled (JERRY_FEATURE_ERROR_MESSAGES));
7777

0 commit comments

Comments
 (0)