summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-22 18:09:37 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-22 18:09:37 +0000
commitb0ff69b145684f61556bb831742bda48a8447d1e (patch)
tree8c35f55f99ebd1c1cec33e6d264c3de14164291e /gcc/tree-inline.c
parent2929044d2c2dd186cf7f93f206379c92f473712d (diff)
downloadgcc-b0ff69b145684f61556bb831742bda48a8447d1e.tar.gz
* c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
to warning calls. * tree-inline.c (inlinable_function_p): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102289 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index ff7ea43a105..a0e5a71d194 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1528,7 +1528,7 @@ inlinable_function_p (tree fn)
if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)))
sorry (inline_forbidden_reason, fn);
else if (do_warning)
- warning (0, inline_forbidden_reason, fn);
+ warning (OPT_Winline, inline_forbidden_reason, fn);
inlinable = false;
}