mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
When compiling with gcc 7 the current fallthrough comments (#1878)
are not accepted. This is a bug in gcc 7. For now disable the fallthrough comment detection. Disabling the check does not introduce any risk as previously it was not enabled by default and vera++ already check these kind of comments. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
parent
add60865e0
commit
d56713b9af
@ -221,6 +221,12 @@ if(ENABLE_STRIP AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
jerry_add_link_flags(-s)
|
jerry_add_link_flags(-s)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO: Remove workaround for gcc 7 bug if the
|
||||||
|
# fallthrough comment detection is fixed.
|
||||||
|
if (USING_GCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 7.0)
|
||||||
|
jerry_add_compile_flags(-Wno-implicit-fallthrough)
|
||||||
|
endif()
|
||||||
|
|
||||||
# External compiler & linker flags
|
# External compiler & linker flags
|
||||||
if(DEFINED EXTERNAL_COMPILE_FLAGS)
|
if(DEFINED EXTERNAL_COMPILE_FLAGS)
|
||||||
jerry_add_compile_flags(${EXTERNAL_COMPILE_FLAGS})
|
jerry_add_compile_flags(${EXTERNAL_COMPILE_FLAGS})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user