PATCH: Wno-warning-directives [WasRe: cpplib: Start moving ...]

Neil Booth neil@daikokuya.co.uk
Mon Aug 12 16:01:00 GMT 2002


Devang Patel wrote:-

> Here is the patch.
> OK to commit  ?

Could you remind me of the rationale for this switch again?

> *************** static void preprocess_file PARAMS ((voi
> *** 157,162 ****
> --- 157,163 ----
>     OPT("Wstrict-prototypes",   CL_ALL,   OPT_Wstrict_prototypes)       
>      \
>     OPT("Wsynth",                       CL_CXX,   OPT_Wsynth)           
>              \
>     OPT("Wsystem-headers",      CL_ALL,   OPT_Wsystem_headers)          
>      \
> +   OPT("Wwarning-directives",    CL_ALL,   OPT_Wwarning_directives)    
>      \
>     OPT("Wtraditional",         CL_C,     OPT_Wtraditional)             
>      \
>     OPT("Wtrigraphs",           CL_ALL,   OPT_Wtrigraphs)               
>      \
>     OPT("Wundef",                       CL_ALL,   OPT_Wundef)           

Have you tried this?  If it works, you're lucky, and it will break
in the future 8-)

Neil.



More information about the Gcc-patches mailing list