diff options
| author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-18 06:03:46 +0000 |
|---|---|---|
| committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-18 06:03:46 +0000 |
| commit | 380bf74bc0fb2cbb9ada8c26906bc01ddddaeb37 (patch) | |
| tree | 682eabeadb86e7ed4277488a966cfaae164aead2 /gcc/c-typeck.c | |
| parent | 0f9628989cba57915280082cc75194585348e22d (diff) | |
| download | ppe42-gcc-380bf74bc0fb2cbb9ada8c26906bc01ddddaeb37.tar.gz ppe42-gcc-380bf74bc0fb2cbb9ada8c26906bc01ddddaeb37.zip | |
2005-01-18 Andi Kleen <ak@muc.de>
* c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
* c.opt (-Wpointer-sign): Add.
* doc/invoke.texi: (-Wpointer-sign): Add.
2005-01-18 Michael Matz <matz@suse.de>
* gcc.dg/Wno-pointer-sign.c: New test for -Wno-pointer-sign.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93813 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
| -rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 0d7c019cdbb..2b065023aa5 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -3651,7 +3651,7 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype, || target_cmp) ; /* If there is a mismatch, do warn. */ - else + else if (warn_pointer_sign) WARN_FOR_ASSIGNMENT (N_("pointer targets in passing argument " "%d of %qE differ in signedness"), N_("pointer targets in assignment " |

