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 rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka 2016-02-25 14:08:30 +01:00
parent af715d4ad6
commit 5d3aa98b3b
2 changed files with 2 additions and 2 deletions

View File

@ -2088,7 +2088,7 @@ lexer_decode_unicode_sequence (const uint8_t *source_p) /**< source pointer */
*/
int
lexer_same_identifiers (lexer_lit_location_t *left, /**< left identifier */
lexer_lit_location_t *right) /**< right identifier */
const lexer_lit_location_t *right) /**< right identifier */
{
const uint8_t *left_p;
const uint8_t *right_p;

View File

@ -355,7 +355,7 @@ void lexer_construct_literal_object (parser_context_t *, lexer_lit_location_t *,
int lexer_construct_number_object (parser_context_t *, int, int);
void lexer_construct_function_object (parser_context_t *, uint32_t);
void lexer_construct_regexp_object (parser_context_t *, int);
int lexer_same_identifiers (lexer_lit_location_t *, lexer_lit_location_t *);
int lexer_same_identifiers (lexer_lit_location_t *, const lexer_lit_location_t *);
/* Parser functions. */