fix warnings.
This commit is contained in:
parent
b1a3b925ae
commit
03fe3285e9
@ -2496,6 +2496,7 @@ YAP_TermToStream(Term t)
|
|||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
IOSTREAM *s;
|
IOSTREAM *s;
|
||||||
int rc;
|
int rc;
|
||||||
|
extern int PL_get_stream_handle(Int t, IOSTREAM **s);
|
||||||
BACKUP_MACHINE_REGS();
|
BACKUP_MACHINE_REGS();
|
||||||
|
|
||||||
if ( (rc=PL_get_stream_handle(Yap_InitSlot(t PASS_REGS), &s)) ) {
|
if ( (rc=PL_get_stream_handle(Yap_InitSlot(t PASS_REGS), &s)) ) {
|
||||||
|
@ -612,6 +612,9 @@ p_new_mutex( USES_REGS1 )
|
|||||||
{
|
{
|
||||||
SWIMutex* mutp;
|
SWIMutex* mutp;
|
||||||
pthread_mutexattr_t mat;
|
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));
|
mutp = (SWIMutex *)Yap_AllocCodeSpace(sizeof(SWIMutex));
|
||||||
if (mutp == NULL) {
|
if (mutp == NULL) {
|
||||||
|
Reference in New Issue
Block a user