aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-09-30 09:52:41 +0000
committerPaolo Bonzini <bonzini@gnu.org>2008-09-30 09:52:41 +0000
commit8af44cb3a601d9466f72393845252b4fef0dcfff (patch)
tree550e5d90532796178dbba4eb2e6ff1c54828d12c /gcc/c-common.h
parentdab745a88cfe97ebdc88695876b7177aa0ba3588 (diff)
2008-09-30 Paolo Bonzini <bonzini@gnu.org>
* c-common.c (empty_if_body_warning): Remove. * c-common.h (empty_if_body_warning): Remove. * c-parser.c (c_parser_if_body, c_parser_else_body): Implement here the -Wempty-body warning for `if' and `else' statements. * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning. cp: 2008-09-30 Paolo Bonzini <bonzini@gnu.org> * parser.c (cp_parser_selection_statement): Implement here the -Wempty-body warning for `if' and `else' statements. * semantics.c (finish_if_stmt): Do not call empty_body_warning. testsuite: 2008-09-30 Paolo Bonzini <bonzini@gnu.org> * g++.dg/warn/if-empty-1.C: Copy from gcc.dg/if-empty-1.c. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@140780 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 15ea5731de1..622100a40cf 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -726,7 +726,6 @@ struct varray_head_tag;
extern void constant_expression_warning (tree);
extern void constant_expression_error (tree);
extern bool strict_aliasing_warning (tree, tree, tree);
-extern void empty_if_body_warning (tree, tree);
extern void warnings_for_convert_and_check (tree, tree, tree);
extern tree convert_and_check (tree, tree);
extern void overflow_warning (tree);