diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2006-01-26 18:50:37 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2006-01-26 18:50:37 +0000 |
commit | f4e9414ef87ba277f02cf9d66d6f40304e877cb7 (patch) | |
tree | 5f651bd0ed5cebb8605697501f8758fbcf305fb8 /gcc/c.opt | |
parent | e046a30ab14ee10d1d4e0cbc179199c754192270 (diff) | |
download | gcc-f4e9414ef87ba277f02cf9d66d6f40304e877cb7.zip gcc-f4e9414ef87ba277f02cf9d66d6f40304e877cb7.tar.gz gcc-f4e9414ef87ba277f02cf9d66d6f40304e877cb7.tar.bz2 |
re PR c/25892 (-Wpointer-sign creates problems for Emacs)
gcc/ChangeLog:
PR c/25892
* c.opt (Wpointer-sign): Init to -1.
* c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
OPT_pedantic, to 0 otherwise.
* doc/invoke.texi: Update.
gcc/testsuite/ChangeLog:
PR c/25892
* gcc.dg/Wpointer-sign.c: New.
* gcc.dg/Wpointer-sign-Wall.c: New.
* gcc.dg/Wpointer-sign-Wall-no.c: New.
* gcc.dg/Wpointer-sign-pedantic.c: New.
* gcc.dg/Wpointer-sign-pedantic-no.c: New.
* gcc.dg/conv-2.c: Use -Wpointer-sign.
From-SVN: r110265
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -420,7 +420,7 @@ C ObjC C++ ObjC++ Give strings the type \"array of char\" Wpointer-sign -C ObjC Var(warn_pointer_sign) Init(1) +C ObjC Var(warn_pointer_sign) Init(-1) Warn when a pointer differs in signedness in an assignment ansi |