[patch]: Fixes warnings in gthr-win32.h for mingw targets

Kai Tietz ktietz70@googlemail.com
Mon Aug 24 11:21:00 GMT 2009


Hello,

this patch fixes some warnings for mingw targets about unused
arguments, and fixes pointer-scalar cast warnings for x64 mingw
target.

2009-08-24  Kai Tietz  <kai.tietz@onevision.com>

	* gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
	(__gthread_objc_condition_allocate): Mark arguments as unused.
	(__gthread_objc_condition_deallocate): Likewise.
	(__gthread_objc_condition_wait): Likewise.
	(__gthread_objc_condition_broadcast): Likewise.
	(__gthread_objc_condition_signal): Likewise.
	(__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
	(__gthread_objc_thread_id): Likewise.


Tested for i686-pc-mingw32 and for x86_64-pc-mingw32. Ok for apply to trunk?

Cheers,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr34315.diff
Type: text/x-c
Size: 2193 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090824/a30de274/attachment.bin>


More information about the Gcc-patches mailing list