Rene Herman <[email protected]> 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- somebody dropped a (warning) bomb
- From: Jeff Garzik <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: "Pekka Enberg" <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: "Pekka Enberg" <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Sergei Organov <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Rene Herman <[email protected]>
- somebody dropped a (warning) bomb
- Prev by Date: Re: somebody dropped a (warning) bomb
- Next by Date: Re: [PATCH 1/3] net/bridge/br_if.c: don't use _WORK_NAR
- Previous by thread: Re: somebody dropped a (warning) bomb
- Next by thread: Re: somebody dropped a (warning) bomb
- Index(es):