diff options
author | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-07 19:41:14 +0000 |
---|---|---|
committer | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-07 19:41:14 +0000 |
commit | 0b995473bd1e9e4461c09ac7369a2e6709238018 (patch) | |
tree | 73d1c3e94726a3156bfd94997fc2db501ff46a43 /gcc/c.opt | |
parent | 7a30782cefe3a7c692d886403d48f2f583814a25 (diff) | |
download | gcc-0b995473bd1e9e4461c09ac7369a2e6709238018.tar.gz |
2006-02-07 Dirk Mueller <dmueller@suse.com>
* 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
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 2 |
1 files changed, 1 insertions, 1 deletions
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++ |