diff options
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 114275c..64a5aa5 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1769,7 +1769,8 @@ handle_com_interface_attribute (tree* node, || !CLASS_TYPE_P (*node) || *node != TYPE_MAIN_VARIANT (*node)) { - warning (0, "%qE attribute can only be applied to class definitions", name); + warning (OPT_Wattributes, "%qE attribute can only be applied " + "to class definitions", name); return NULL_TREE; } |