From: Mitchell Blank Jr <mitch@sfgoth.com>
To: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Silence a const vs non-const warning
Date: Mon, 3 Apr 2006 05:15:04 -0700 [thread overview]
Message-ID: <20060403121503.GF3157@gaz.sfgoth.com> (raw)
In-Reply-To: <20060403112107.GQ1259@lug-owl.de>
Jan-Benedict Glaw wrote:
> This patch silences a const vs. non-const warning issued by very
> recent GCC versions:
>
> $ vax-linux-uclibc-gcc -v 2>&1 | grep version
[...]
> void *memcpy(void *dest, const void *src, size_t count)
> {
> char *tmp = dest;
> - char *s = src;
> + const char *s = src;
Actually the compiler version has nothing to do with it -- I'm pretty
sure even gcc 2.X would warn on that. The actual reason that most people
don't see that is that an arch w/o __HAVE_ARCH_MEMCPY is pretty rare.
Still, no reason for the reference C version of that function to emit
a warning, so it's worth fixing.
-Mitch
prev parent reply other threads:[~2006-04-03 12:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-03 11:21 [PATCH] Silence a const vs non-const warning Jan-Benedict Glaw
2006-04-03 12:15 ` Mitchell Blank Jr [this message]
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=20060403121503.GF3157@gaz.sfgoth.com \
--to=mitch@sfgoth.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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.