This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]