diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2018-05-30 22:33:38 +0300 |
---|---|---|
committer | Ville Voutilainen <ville@gcc.gnu.org> | 2018-05-30 22:33:38 +0300 |
commit | 752e7593b0f19af233a0b7e72daab8413662b605 (patch) | |
tree | 345bd42020e2f7a5f8d90544d04251d807f7db9c /gcc/builtins.c | |
parent | 298434c916c14e8adca2cab8a746aee29038c5b3 (diff) | |
download | gcc-752e7593b0f19af233a0b7e72daab8413662b605.zip gcc-752e7593b0f19af233a0b7e72daab8413662b605.tar.gz gcc-752e7593b0f19af233a0b7e72daab8413662b605.tar.bz2 |
Do not warn about zero-as-null when NULL is used.
gcc/cp/
Do not warn about zero-as-null when NULL is used.
* call.c (conversion_null_warnings): Check for pointer
types converted from zero constants.
(convert_like_real): Add a warning sentinel at the end.
* tree.c (maybe_warn_zero_as_null_pointer_constant): Also
check null_node_p.
testsuite/
Do not warn about zero-as-null when NULL is used.
* g++.dg/warn/Wzero-as-null-pointer-constant-7.C: New.
From-SVN: r260973
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions