From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14533 invoked by alias); 24 Jul 2006 17:03:07 -0000 Received: (qmail 14507 invoked by uid 48); 24 Jul 2006 17:02:59 -0000 Date: Mon, 24 Jul 2006 17:03:00 -0000 Message-ID: <20060724170259.14506.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*' In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "vz-gcc at zeitlins dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg01852.txt.bz2 List-Id: ------- 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 pointer in C is, implicitely, pointer to void. But most importantly I think this warning is absolutely useless and the only way to get rid of it is ugly (you need an explicit cast to "void *"). But, again, the most important argument against this warning is that it's 100% useless. Conversion of any pointer to "void *" is well defined and unambiguous (even in presence of multiple inheritance) and there is just no situation whatsoever in which this warning can indicate a real problem. Please consider suppressing it, thanks in advance! -- vz-gcc at zeitlins dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vz-gcc at zeitlins dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542