forgot to add gcc-patches@gcc.gnu.org. Sorry for the double-post.
On Wed, Apr 23, 2014 at 11:28 PM, Prathamesh Kulkarni <bilbotheelffri...@gmail.com> wrote: > This is a follow up mail to > http://gcc.gnu.org/ml/gcc-help/2014-04/msg00096.html > I have attached patch that prints the warning when passed -Wvariadic-macros > (I mostly followed it along lines of -Wlong-long). > OK for trunk ? > > [libcpp] > * macro.c (parse_params): Remove condition CPP_OPTION (pfile, cpp_pedantic). > > [gcc/c-family] > * c.opt (-Wvariadic-macros): Init(-1) instead of Init(1). > * c-opts.c (c_common_handle_option): Add case OPT_Wvariadic_macros. > (sanitize_cpp_opts): Check condition for pedantic or > warn_traditional. > > Thanks and Regards, > Prathamesh