Skip to content

Commit 21e2951

Browse files
committed
Use '-Werror' instead of '-Werror=...' for Jerry libc
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
1 parent 073ab05 commit 21e2951

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ project (Jerry C ASM)
273273
add_jerry_compile_warnings(all extra format-nonliteral init-self conversion sign-conversion format-security missing-declarations pedantic)
274274
add_jerry_compile_flags(-Wno-stack-protector -Wno-attributes)
275275
if(CMAKE_COMPILER_IS_GNUCC)
276+
if(${USE_JERRY_LIBC})
277+
add_jerry_compile_flags(-Werror)
278+
endif()
276279
add_jerry_compile_warnings(logical-op)
277280
else()
278281
add_jerry_compile_flags(-Wno-nested-anon-types)

jerry-core/ecma/base/ecma-helpers-string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ ecma_compare_ecma_strings_relational (const ecma_string_t *string1_p, /**< ecma-
918918
return false;
919919
}
920920

921-
const lit_utf8_byte_t *utf8_string1_p, *utf8_string2_p;
921+
lit_utf8_byte_t *utf8_string1_p, *utf8_string2_p;
922922
bool is_utf8_string1_on_heap = false, is_utf8_string2_on_heap = false;
923923
lit_utf8_byte_t utf8_string1_buffer[ECMA_MAX_CHARS_IN_STRINGIFIED_NUMBER];
924924
lit_utf8_size_t utf8_string1_size;

0 commit comments

Comments
 (0)