diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-20 07:32:08 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-20 07:32:08 +0000 |
commit | 8d3eb46efe13fc33b60e4657da64a32f1515ca37 (patch) | |
tree | 3a1a6a1311b867a1768dacc4273f79b79d375b1f /gcc/c-tree.h | |
parent | 96f4780becade6947669d6287c8b228d2dedd4d4 (diff) | |
download | gcc-8d3eb46efe13fc33b60e4657da64a32f1515ca37.tar.gz |
New warning, `missing-noreturn':
* c-decl.c (warn_missing_noreturn): New global variable.
(c_decode_option): Check for new flags -W{no-}missing-noreturn.
(finish_function): Implement missing noreturn warning.
* c-tree.h (warn_missing_noreturn): Declare extern.
* invoke.texi: Document new flags.
* toplev.c (documented_lang_options): Add description.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23197 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 3e73299d47b..fec60cba271 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -469,6 +469,10 @@ extern int warn_cast_qual; extern int warn_bad_function_cast; +/* Warn about functions which might be candidates for attribute noreturn. */ + +extern int warn_missing_noreturn; + /* Warn about traditional constructs whose meanings changed in ANSI C. */ extern int warn_traditional; |