RFR : 8211146 : fix problematic elif-tests after recent gcc warning changes Werror=undef

Thomas Stüfe thomas.stuefe at gmail.com
Wed Sep 26 12:22:06 UTC 2018


Thanks for clarifying!

Thomas

On Wed, Sep 26, 2018, 14:20 Baesken, Matthias <matthias.baesken at sap.com>
wrote:

> Hi Thomas, I think your understanding is correct :
>
> "#ifdef <undefined switch>"
>
> or
>
> "#if  defined(<undefined switch>)"
>
> Are ok while
>
> "#if <undefined switch>"
>
>  or
>
> "#elif <undefined switch>"
>
> Lead to the compile error on gcc with current warnings.
>
> Best regards, Matthias
>
>
> > >>
> > > This looks okay to me although I could imagine this issue coming back
> again
> > > with ongoing edits that add "ifdef __solaris" or similar.
> > >
> >
> > If I understand this problem correctly (and I might not) the problem
> > is with "#if <undefined switch>", not with "#ifdef <undefined
> > switch>".
> >
> > ..thomas
> >
> > > -Alan
>



More information about the build-dev mailing list