RFR : 8211146 : fix problematic elif-tests after recent gcc warning changes Werror=undef
    Baesken, Matthias 
    matthias.baesken at sap.com
       
    Wed Sep 26 12:19:56 UTC 2018
    
    
  
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