[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2009-02-10 Thread jason dot orendorff at gmail dot com
--- Comment #9 from jason dot orendorff at gmail dot com 2009-02-10 22:22 --- Please consider reopening this bug. I appreciate that the relevant standards don't guarantee this idiom will always work. On the other hand, this warning is in practice only a nuisance. Balance the real

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-12-08 Thread vz-gcc at zeitlins dot org
--- Comment #7 from vz-gcc at zeitlins dot org 2006-12-08 11:07 --- Just for my personal education, could you please tell which target(s) pass char * differently from void * in this context? Thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542

Re: [Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-12-08 Thread Andrew Pinski
On Fri, 2006-12-08 at 11:07 +, vz-gcc at zeitlins dot org wrote: Just for my personal education, could you please tell which target(s) pass char * differently from void * in this context? A made up target (at least for now). :) -- Pinski

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-12-08 Thread pinskia at gmail dot com
--- Comment #8 from pinskia at gmail dot com 2006-12-08 18:17 --- Subject: Re: bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*' On Fri, 2006-12-08 at 11:07 +, vz-gcc at zeitlins dot org wrote: Just for my personal

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-12-07 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-12-08 04:37 --- I'd like to (probably uselessly but still) argue for reopening this bug and removing this warning. The interpretation of the standard text is open to questions: IMHO an A * pointer is a pointer to void, too, as

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-07-24 Thread vz-gcc at zeitlins dot org
--- Comment #4 from vz-gcc at zeitlins dot org 2006-07-24 17:02 --- I'd like to (probably uselessly but still) argue for reopening this bug and removing this warning. The interpretation of the standard text is open to questions: IMHO an A * pointer is a pointer to void, too, as any

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-07-24 Thread pluto at agmk dot net
--- Comment #5 from pluto at agmk dot net 2006-07-24 17:16 --- *** Bug 28459 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-03-03 11:50 --- Indeed. Not exactly useful. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-03 12:45 --- Actually the C standard says void* only. I don't see the issue here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542

[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'

2006-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-03 14:07 --- This is actually expected. From the C standard: p The argument shall be a pointer to void. The value of the pointer is converted to a sequence of printing characters, in an implementation-defined manner. --