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

Khem Raj raj.khem at gmail.com
Tue Dec 31 07:52:31 UTC 2019


On Mon, Dec 30, 2019 at 11:40 PM Adrian Bunk <bunk at stusta.de> wrote:
>
> 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?
>

Upstream has a similar patch to disable this warning on gcc, so its
better to follow what
they are doing.

> cu
> Adrian


More information about the Openembedded-devel mailing list