aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-10-20 07:32:08 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-10-20 07:32:08 +0000
commit0ca3fb0a168e9db2bd5405855d3932f62b08b7c9 (patch)
tree3a1a6a1311b867a1768dacc4273f79b79d375b1f /gcc/c-tree.h
parentf1c374cbf13459be57011c157b5ebba66cc1e02d (diff)
downloadgcc-0ca3fb0a168e9db2bd5405855d3932f62b08b7c9.zip
gcc-0ca3fb0a168e9db2bd5405855d3932f62b08b7c9.tar.gz
gcc-0ca3fb0a168e9db2bd5405855d3932f62b08b7c9.tar.bz2
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. From-SVN: r23197
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 3e73299..fec60cb 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;