From 0b995473bd1e9e4461c09ac7369a2e6709238018 Mon Sep 17 00:00:00 2001 From: mueller Date: Tue, 7 Feb 2006 19:41:14 +0000 Subject: 2006-02-07 Dirk Mueller * c.opt: C++ frontend supports -Wdiv-by-zero. * c-opts.c (c_common_handle_option): Remove dead case. * typeck.c (build_binary_op): Annotate div-by-zero warnings to make -Wno-div-by-zero have an effect. g++.dg/warn/Wdiv-by-zero.C: New test. g++.dg/warn/Wno-div-by-zero.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110712 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c.opt') diff --git a/gcc/c.opt b/gcc/c.opt index 4ce9b9fed89..a841d528132 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -166,7 +166,7 @@ C++ ObjC++ Var(warn_deprecated) Init(1) Warn about deprecated compiler features Wdiv-by-zero -C ObjC Var(warn_div_by_zero) Init(1) +C ObjC C++ Var(warn_div_by_zero) Init(1) Warn about compile-time integer division by zero Weffc++ -- cgit v1.2.1