diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2006-01-18 00:15:37 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2006-01-18 00:15:37 +0000 |
commit | aa7349ebe29b32bc77bdbe2d029a88b618b54757 (patch) | |
tree | d1f62655e00731adbd8cc30bad4105c83a48ba6b /gcc/cp/cvt.c | |
parent | ef7befe0d055b477863ac067e332d2e0333d3913 (diff) | |
download | gcc-aa7349ebe29b32bc77bdbe2d029a88b618b54757.zip gcc-aa7349ebe29b32bc77bdbe2d029a88b618b54757.tar.gz gcc-aa7349ebe29b32bc77bdbe2d029a88b618b54757.tar.bz2 |
call.c (convert_like_real): When issuing conversion warnings, depend on OPT_Wconversion.
2006-01-17 Eric Christopher <echristo@apple.com>
* call.c (convert_like_real): When issuing conversion
warnings, depend on OPT_Wconversion.
* cvt.c (build_expr_type_conversion): Ditto.
2006-01-17 Eric Christopher <echristo@apple.com>
* g++.old-deja/g++.warn/impint.C: Add -Wconversion.
* g++.old-deja/g++.warn/impint2.C: Ditto.
* g++.old-deja/g++.other/null1.C: Ditto.
* g++.dg/warn/conv2.C: Ditto.
* g++.dg/warn/conv4.C: New file.
From-SVN: r109847
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index ea3c496..119ba18 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -1058,7 +1058,7 @@ build_expr_type_conversion (int desires, tree expr, bool complain) if (expr == null_node && (desires & WANT_INT) && !(desires & WANT_NULL)) - warning (0, "converting NULL to non-pointer type"); + warning (OPT_Wconversion, "converting NULL to non-pointer type"); basetype = TREE_TYPE (expr); |