This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa/testsuite/threads] fix gcc signed/unsigned warning


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]