mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Use '-Werror' instead of '-Werror=...' for Jerry libc
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
parent
073ab05366
commit
21e2951a44
@ -273,6 +273,9 @@ project (Jerry C ASM)
|
||||
add_jerry_compile_warnings(all extra format-nonliteral init-self conversion sign-conversion format-security missing-declarations pedantic)
|
||||
add_jerry_compile_flags(-Wno-stack-protector -Wno-attributes)
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
if(${USE_JERRY_LIBC})
|
||||
add_jerry_compile_flags(-Werror)
|
||||
endif()
|
||||
add_jerry_compile_warnings(logical-op)
|
||||
else()
|
||||
add_jerry_compile_flags(-Wno-nested-anon-types)
|
||||
|
||||
@ -918,7 +918,7 @@ ecma_compare_ecma_strings_relational (const ecma_string_t *string1_p, /**< ecma-
|
||||
return false;
|
||||
}
|
||||
|
||||
const lit_utf8_byte_t *utf8_string1_p, *utf8_string2_p;
|
||||
lit_utf8_byte_t *utf8_string1_p, *utf8_string2_p;
|
||||
bool is_utf8_string1_on_heap = false, is_utf8_string2_on_heap = false;
|
||||
lit_utf8_byte_t utf8_string1_buffer[ECMA_MAX_CHARS_IN_STRINGIFIED_NUMBER];
|
||||
lit_utf8_size_t utf8_string1_size;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user