From: WANG Cong <xiyou.wangcong@gmail.com>
To: Benny Halevy <bhalevy@panasas.com>
Cc: "Ming Lei" <tom.leiming@gmail.com>,
"Jan Engelhardt" <jengelh@computergmbh.de>,
"\"J.A. Magallón\"" <jamagallon@ono.com>,
"Linux-Kernel," <linux-kernel@vger.kernel.org>
Subject: Re: void* arithmnetic
Date: Thu, 29 Nov 2007 20:31:39 +0800 [thread overview]
Message-ID: <20071129123139.GB2458@hacking> (raw)
In-Reply-To: <474E6C86.8090209@panasas.com>
On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote:
>On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <tom.leiming@gmail.com> wrote:
>> 2007/11/29, Jan Engelhardt <jengelh@computergmbh.de>:
>>> On Nov 29 2007 01:05, J.A. Magallón wrote:
>>>> Since begin of the ages the build of the nvidia driver says things like
>>>> this:
>>>>
>>> Explicitly adding -Wpointer-arith to ones own Makefile is like
>>> admitting the code might be problematic. :->
>>>
>>>
>>> I think sizeof(void *) == 1 is taken as granted as sizeof(int) >= 4
>>> these days. Sigh.
>> sizeof(void *) == 4, sizeof(void)==1, :)
>well, sizeof(void *) == sizeof(unsigned long) maybe :)
I *heard* that on Win64 sizeof(void *) > sizeof(long). But it's off-topic
here. ;-)
next prev parent reply other threads:[~2007-11-29 12:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 0:05 void* arithmnetic J.A. Magallón
2007-11-29 0:22 ` Arnaldo Carvalho de Melo
2007-11-29 0:39 ` Jan Engelhardt
2007-11-29 1:19 ` Ming Lei
2007-11-29 7:38 ` Benny Halevy
2007-11-29 12:31 ` WANG Cong [this message]
2007-11-30 11:38 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071129123139.GB2458@hacking \
--to=xiyou.wangcong@gmail.com \
--cc=bhalevy@panasas.com \
--cc=jamagallon@ono.com \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.leiming@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.