[oe] [meta-oe][PATCH 7/8] upm: Disable -Wno-misleading-indentation with clang10+

Adrian Bunk bunk at stusta.de
Tue Dec 31 07:40:37 UTC 2019


On Mon, Dec 30, 2019 at 05:06:51PM -0800, Khem Raj wrote:
>...
> ++# clang-10 added  -Wmisleading-indentation as well, skipp it too
> ++if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9")
> ++  list (APPEND C_CXX_WARNING_FLAGS -Wno-misleading-indentation)
> ++endif ()
> ++
> + # Warnings as errors?
> + if (WERROR)
> +   list (APPEND C_CXX_WARNING_FLAGS -Werror)
>...

Would disabling WERROR solve this and future similar problems?

cu
Adrian


More information about the Openembedded-devel mailing list