This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite/threads] fix gcc signed/unsigned warning
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: msnyder at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 27 Aug 2004 07:23:06 -0400
- Subject: Re: [rfa/testsuite/threads] fix gcc signed/unsigned warning
- References: <412E17EE.nail6CX1NP8LE@mindspring.com><412E9F3A.4010200@redhat.com>
Michael Snyder <msnyder@redhat.com> wrote:
> But if you want to just do this, it's OK with me.
Yay, committed.
> Well, it really looks to me as if either args should be
> signed, or myp should be unsigned. The test will work
> either way, although signed would "feel" safer.
I fooled around with this. I couldn't find something that was type-safe
and felt exactly like the old test. So I decided "one thing at a time"
-- first make it compile like it did with old compilers, then later, fix
the signed/unsigned muddle.
I've filed a PR for the signed/unsigned part.
===
2004-08-26 Michael Chastain <mec.gnu@mindspring.com>
Fix PR testsuite/1735.
* gdb.threads/schedlock.c (thread_function): Add a cast
to suppress a gcc warning.
* gdb.threads/thread-specific.c (thread_function): Likewise.