summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-14 18:37:37 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-14 18:37:37 +0000
commitf092582b2ade55c20811f1e42d28ceea856a5ca8 (patch)
tree3902ec91fa2cdd2dad08ffe58ff337ca6695c6dc /gcc/c-common.h
parent72d997cbf771c1c1b7ca60291da99dbb65b36205 (diff)
downloadgcc-f092582b2ade55c20811f1e42d28ceea856a5ca8.tar.gz
2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/21438 * c-common.h (warn_for_div_by_zero): Declare. * c-common.c (warn_for_div_by_zero): Define. * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of warning. cp/ * typeck.c (build_binary_op): Call warn_for_div_zero instead of warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index f47fa8e3815..b2739c3efb3 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -871,6 +871,7 @@ extern void warn_array_subscript_with_type_char (tree);
extern void warn_about_parentheses (enum tree_code, enum tree_code,
enum tree_code);
extern void warn_for_unused_label (tree label);
+extern void warn_for_div_by_zero (tree divisor);
/* In c-gimplify.c */