{"thread":{"id":"3642","subject":"Re: [PATCH] Trivial warning fix for imap-send.c","startedAt":"2006-03-12T21:51:42Z","lastAt":"2006-03-12T21:51:42Z","messageCount":1,"participants":["Horst von Brand"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"17522","messageId":"200603122151.k2CLpgt0008036@laptop11.inf.utfsm.cl","threadId":"3642","inReplyTo":"mdw@distorted.org.uk","subject":"Re: [PATCH] Trivial warning fix for imap-send.c","fromName":"Horst von Brand","fromEmail":"vonbrand@inf.utfsm.cl","sentAt":"2006-03-12T21:51:42Z","receivedAt":"2006-03-12T21:51:42Z","isPatch":true,"sender":{"key":"vonbrand@inf.utfsm.cl","avatar":"https://avatars.githubusercontent.com/u/211384?v=4"},"body":"Mark Wooding <mdw@distorted.org.uk> wrote:\n> Linus Torvalds <torvalds@osdl.org> wrote:\n> > So in modern C, using NULL at the end of a varargs array as a pointer is \n> > perfectly sane, and the extra cast is just ugly and bowing to bad \n> > programming practices and makes no sense to anybody who never saw the \n> > horror that is K&R.\n\n> No!  You can still get bitten.\n\nOnly if the compiler is completely broken.\n\n>                                 You're lucky that on common platforms\n> all pointers look the same, but if you find one where `char *' (and\n> hence `void *') isn't the same as `struct foo *' then, under appropriate\n> circumstances you /will/ unless you put the casts in.\n\nShow one platform where this is true...\n\n> Now, maybe we don't care for GIT.  That's your (and Junio's) call.  My\n> natural approach is to work as closely as I can to the specs (and then\n> throw in hacks for platforms which /still/ don't work), though, which is\n> why I brought the subject up.\n\nIf on the platform you use it doesn't work, change the compiler. Fast.\n-- \nDr. Horst H. von Brand                   User #22616 counter.li.org\nDepartamento de Informatica                     Fono: +56 32 654431\nUniversidad Tecnica Federico Santa Maria              +56 32 654239\nCasilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513\n"}]}