diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-22 18:09:37 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-22 18:09:37 +0000 |
commit | b0ff69b145684f61556bb831742bda48a8447d1e (patch) | |
tree | 8c35f55f99ebd1c1cec33e6d264c3de14164291e /gcc/tree-inline.c | |
parent | 2929044d2c2dd186cf7f93f206379c92f473712d (diff) | |
download | gcc-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.c | 2 |
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; } |