aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-07-22 14:09:37 -0400
committerDJ Delorie <dj@gcc.gnu.org>2005-07-22 14:09:37 -0400
commitd2fcbf6f86b4f7fe95bfb36840cf3ea7ddee353a (patch)
tree8c35f55f99ebd1c1cec33e6d264c3de14164291e /gcc/tree-inline.c
parentd1cc97e081d63dd6c9a89014d2e2af6ac32c378e (diff)
downloadgcc-d2fcbf6f86b4f7fe95bfb36840cf3ea7ddee353a.zip
gcc-d2fcbf6f86b4f7fe95bfb36840cf3ea7ddee353a.tar.gz
gcc-d2fcbf6f86b4f7fe95bfb36840cf3ea7ddee353a.tar.bz2
c-objc-common.c (c_cannot_inline_tree_fn): Add warning control to warning calls.
* c-objc-common.c (c_cannot_inline_tree_fn): Add warning control to warning calls. * tree-inline.c (inlinable_function_p): Likewise. From-SVN: r102289
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 ff7ea43..a0e5a71 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;
}