Skip to content

Commit 5d3aa98

Browse files
committed
Warning fix for ALL_IN_ONE.
Passing argument 2 of ‘lexer_same_identifiers’ discards ‘const’ qualifier from pointer target type. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
1 parent af715d4 commit 5d3aa98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jerry-core/parser/js/js-lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ lexer_decode_unicode_sequence (const uint8_t *source_p) /**< source pointer */
20882088
*/
20892089
int
20902090
lexer_same_identifiers (lexer_lit_location_t *left, /**< left identifier */
2091-
lexer_lit_location_t *right) /**< right identifier */
2091+
const lexer_lit_location_t *right) /**< right identifier */
20922092
{
20932093
const uint8_t *left_p;
20942094
const uint8_t *right_p;

jerry-core/parser/js/js-parser-internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void lexer_construct_literal_object (parser_context_t *, lexer_lit_location_t *,
355355
int lexer_construct_number_object (parser_context_t *, int, int);
356356
void lexer_construct_function_object (parser_context_t *, uint32_t);
357357
void lexer_construct_regexp_object (parser_context_t *, int);
358-
int lexer_same_identifiers (lexer_lit_location_t *, lexer_lit_location_t *);
358+
int lexer_same_identifiers (lexer_lit_location_t *, const lexer_lit_location_t *);
359359

360360
/* Parser functions. */
361361

0 commit comments

Comments
 (0)