[Sablevm-developer] Errno usage considered harmful?!
Brought to you by:
egagnon
From: Grzegorz B. P. <ga...@de...> - 2004-03-10 08:29:06
|
Hi all, I have strange problems with compiler warnings: 1. If I add: #include <errno.h> extern int errno; I get such warning: java_lang_ProcessImpl.c:24: warning: function declaration isn't a prototype 2. In interrupt() implementation I use a pointer to pthread_cond_t: volatile pthread_cond_t *sleeping_on_cond; I also keep getting this warning: java_lang_VMThread.c:342: warning: passing arg 1 of `pthread_cond_broadcast' discards qualifiers from pointer target type which is such code: pthread_cond_broadcast (env_other->thread.sleeping_on_cond); Not sure how to deal with these two. Suggestions are very welcomed. [*] Cheers, Grzegorz B. Prokopski [*] Like a good RTFM, for ex. -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPLed JVM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM |