fix warnings.

This commit is contained in:
Vítor Santos Costa 2011-06-06 10:32:58 +01:00
parent b1a3b925ae
commit 03fe3285e9
2 changed files with 4 additions and 0 deletions

View File

@ -2496,6 +2496,7 @@ YAP_TermToStream(Term t)
CACHE_REGS
IOSTREAM *s;
int rc;
extern int PL_get_stream_handle(Int t, IOSTREAM **s);
BACKUP_MACHINE_REGS();
if ( (rc=PL_get_stream_handle(Yap_InitSlot(t PASS_REGS), &s)) ) {

View File

@ -612,6 +612,9 @@ p_new_mutex( USES_REGS1 )
{
SWIMutex* mutp;
pthread_mutexattr_t mat;
#ifdef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP
extern int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind);
#endif
mutp = (SWIMutex *)Yap_AllocCodeSpace(sizeof(SWIMutex));
if (mutp == NULL) {