fix warnings.
This commit is contained in:
parent
b1a3b925ae
commit
03fe3285e9
@ -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)) ) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user