From: Andrew Cagney <cagney@gnu.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [commit] Use bfd_byte in value.h
Date: Thu, 28 Apr 2005 22:12:00 -0000 [thread overview]
Message-ID: <42715EE8.5070704@gnu.org> (raw)
In-Reply-To: <200504281919.j3SJJKF1011501@elgar.sibelius.xs4all.nl>
Like I mentioned on gdb@, these are for warnings you get when building
with GCC 4 (or for that matter, any modern compiler). vis:
cagney@tornado$ cat -n s.c
1 char *c;
2 signed char *s;
3 unsigned char *u;
4
5 void foo (void)
6 {
7 c = s;
8 c = u;
9 s = u;
10 }
$ gcc --version
gcc (GCC) 4.0.0 20050412 (Red Hat 4.0.0-0.42)
...
$ gcc -c s.c
s.c: In function foo:
s.c:7: warning: pointer targets in assignment differ in signedness
s.c:8: warning: pointer targets in assignment differ in signedness
s.c:9: warning: pointer targets in assignment differ in signedness
next prev parent reply other threads:[~2005-04-28 22:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 16:27 Andrew Cagney
2005-04-28 19:19 ` Mark Kettenis
2005-04-28 19:21 ` Daniel Jacobowitz
2005-04-28 22:12 ` Andrew Cagney [this message]
2005-04-29 7:15 ` Eli Zaretskii
2005-05-01 20:19 ` Andrew Cagney
2005-05-01 20:41 ` Mark Kettenis
2005-05-01 21:13 ` Eli Zaretskii
2005-05-01 23:04 ` Andrew Cagney
2005-05-02 19:12 ` Eli Zaretskii
2005-05-03 14:43 ` Andrew Cagney
2005-05-03 19:55 ` Eli Zaretskii
2005-05-03 20:01 ` Daniel Jacobowitz
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=42715EE8.5070704@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox