Message ID | 560AF2E6.6080400@qnx.com |
---|---|
State | New |
Headers | show |
Ping: https://gcc.gnu.org/ml/gcc-patches/2015-09/msg02256.html Regards, Ryan Mansfield On 15-09-29 04:21 PM, Ryan Mansfield wrote: > Hi, > > In canonicalize_type_argument attributes are being discarded with a > warning. Should it be added to OPT_Wattributes? > > 2015-09-29 Ryan Mansfield <rmansfield@qnx.com> > > * pt.c (canonicalize_type_argument): Use OPT_Wattributes in > warning.
Index: cp/pt.c =================================================================== --- cp/pt.c (revision 228265) +++ cp/pt.c (working copy) @@ -6888,7 +6888,7 @@ tree canon = strip_typedefs (arg, &removed_attributes); if (removed_attributes && (complain & tf_warning)) - warning (0, "ignoring attributes on template argument %qT", arg); + warning (OPT_Wattributes, "ignoring attributes on template argument %qT", arg); return canon; }