OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* common.opt (-Wattributes): New. Default true.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
config
/
ns32k
/
ns32k.c
diff --git
a/gcc/config/ns32k/ns32k.c
b/gcc/config/ns32k/ns32k.c
index
f15e5dc
..
e4448ef
100644
(file)
--- a/
gcc/config/ns32k/ns32k.c
+++ b/
gcc/config/ns32k/ns32k.c
@@
-1106,7
+1106,7
@@
ns32k_handle_fntype_attribute (tree *node, tree name,
&& TREE_CODE (*node) != FIELD_DECL
&& TREE_CODE (*node) != TYPE_DECL)
{
&& TREE_CODE (*node) != FIELD_DECL
&& TREE_CODE (*node) != TYPE_DECL)
{
- warning (
0
, "%qs attribute only applies to functions",
+ warning (
OPT_Wattributes
, "%qs attribute only applies to functions",
IDENTIFIER_POINTER (name));
*no_add_attrs = true;
}
IDENTIFIER_POINTER (name));
*no_add_attrs = true;
}