diff mbox

Add OPT_Wattributes to ignored attributes on template args

Message ID 560AF2E6.6080400@qnx.com
State New
Headers show

Commit Message

Ryan Mansfield Sept. 29, 2015, 8:21 p.m. UTC
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.



Regards,

Ryan Mansfield

Comments

Ryan Mansfield Oct. 19, 2015, 5:29 p.m. UTC | #1
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.
diff mbox

Patch

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;
  }