Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932127AbXBSL7i (ORCPT ); Mon, 19 Feb 2007 06:59:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932148AbXBSL7h (ORCPT ); Mon, 19 Feb 2007 06:59:37 -0500 Received: from javad.com ([216.122.176.236]:1912 "EHLO javad.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932127AbXBSL7h (ORCPT ); Mon, 19 Feb 2007 06:59:37 -0500 From: Sergei Organov To: Rene Herman Cc: Linus Torvalds , Pekka Enberg , =?utf-8?B?Si5BLiBNYWdhbGzDg8ODw4PDg8ODw4LCs24=?= , Jan Engelhardt , Jeff Garzik , Linux Kernel Mailing List , Andrew Morton Subject: Re: somebody dropped a (warning) bomb References: <45CB3B28.60102@garzik.org> <87abznsdyo.fsf@javad.com> <874pprr5nn.fsf@javad.com> <87ps8end9b.fsf@javad.com> <84144f020702131026q2af1afd6vbcd2708d7b7b9907@mail.gmail.com> <87bqjxooog.fsf@javad.com> <84144f020702131143r767aa40blb97a39b40bee73b8@mail.gmail.com> <87fy99n6mf.fsf@javad.com> <87hctnlfqz.fsf@javad.com> <87k5yjjlrj.fsf@javad.com> <45D5325A.2040502@gmail.com> Date: Mon, 19 Feb 2007 14:58:54 +0300 Message-ID: <87mz3agxz5.fsf@javad.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 965 Lines: 28 Rene Herman writes: [...] > Given char's special nature, shouldn't the conclusion of this thread > have long been simply that gcc needs -Wno-char-pointer-sign? (with > whatever default, as far as I'm concerned). I entirely agree that all the char business in C is messy enough to justify separate warning switch(es) in GCC. However, I still insist that the problem with the code: void foo(char *c); unsigned char *u; signed char *s; ... foo(u); foo(s); is not (only) in signedness, as neither 'u' nor 's' has compatible type with the "char*", no matter what is the sign of "char", so if one cares about type safety he needs warnings on both invocations of foo(). -- Sergei. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/