fix warnings

This commit is contained in:
Vítor Santos Costa 2014-06-19 15:05:46 +01:00
parent 32a4ea3a94
commit 6a9e496bde
4 changed files with 5 additions and 3 deletions

View File

@ -1000,6 +1000,7 @@ getFormat(compiler_vm_op ic) {
"write_s_end"
#endif
}
return NULL;
}
void

View File

@ -41,7 +41,7 @@
#define FNV32_PRIME ((UInt)16777619)
#define FNV64_PRIME ((UInt)1099511628211)
#define FNV32_OFFSET ((UInt)2166136261)
#define FNV32_OFFSET ((UInt)0x811c9dc5)
#define FNV64_OFFSET ((UInt)14695981039346656037)
/*MurmurHash3 from: https://code.google.com/p/smhasher/wiki/MurmurHash3*/
@ -435,7 +435,7 @@ add_index(struct index_t **ip, UInt bmap, PredEntry *ap, UInt count)
continue;
}
#if DEBUG
fprintf(stderr, "entries=%ld collisions=%ld (max=%ld) trys=%ld\n", i->nentries, i->ncollisions, i->max_col_count, i->ntrys);
fprintf(stderr, "entries=" UInt_FORMAT " collisions=" UInt_FORMAT" (max=" UInt_FORMAT ") trys=" UInt_FORMAT "\n", i->nentries, i->ncollisions, i->max_col_count, i->ntrys);
#endif
if (!i->ntrys && !i->is_key) {
i->is_key = TRUE;

View File

@ -959,7 +959,7 @@ p_write_string( USES_REGS1 )
char buf[256];
if ((s = Yap_TermToString( in, buf, 256, &length, &encoding, 0)))
fprintf(stderr,"%ld %s\n",length, s);
fprintf(stderr,"%s\n", s);
return TRUE;
}
#endif

View File

@ -24,6 +24,7 @@
#include "YapText.h"
#include <string.h>
#include <wchar.h>
#ifndef HAVE_WCSNLEN
inline static size_t