LZMAFLAGS=-Ilzma/api -Ilzma/tuklib -Ilzma/lzma -Ilzma/common -Ilzma/check -Ilzma/lz -Ilzma/rangecoder -Ilzma/simple -Ilzma/delta -DHAVE_CHECK_CRC64 -DHAVE_CHECK_CRC32 -DHAVE_ENCODER_LZMA2 -DHAVE_DECODER_LZMA2 -DHAVE_MF_BT4
-LDFLAGS=-L.
+LDFLAGS=-L. -ldl
LZMACHECKSRC=lzma/check/check.c lzma/check/crc32_fast.c lzma/check/crc64_fast.c lzma/check/crc32_table.c lzma/check/crc64_table.c
LZMASRC=$(shell ls lzma/lzma/*.c lzma/common/*.c lzma/lz/*.c) $(LZMACHECKSRC) lzma/rangecoder/price_table.c
static int callback(void *NotUsed, int argc, char **argv, char **azColName){
int i;
- NotUsed = 0; /* suppress warning */
+ if (NotUsed) {
+ fprintf(stderr, "sqlite3 callback unused = %p\n", NotUsed);
+ }
for(i=0; i<argc; i++){
printf("%s = %s\n", azColName[i], argv[i] ? argv[i] : "NULL");
}
return 1;
}
-static int zpm_sqlite_vercmp(void *not_used, int unknown, const void *a,
- int unk2, const void *b) {
+static int zpm_sqlite_vercmp(void *not_used, int lena, const void *a,
+ int lenb, const void *b) {
/* not sure what the ints are, possibly string lengths */
- not_used = 0; /* suppress warning */
- unknown = 0; /* suppress warning */
- unk2 = 0;
+ if (not_used != 0) fprintf(stderr, "sqlite vercmp not_used = %p\n",
+ not_used);
+ if (lena == 0 && lenb > 0) return 1;
return zpm_vercmp(a, b);
}
hash = hashbuf;
}
- flags = 0; /* suppress warning, probably use to follow symlinks */
+ if (flags) {
+ fprintf(stderr, "zpm_import unused flags = %d\n", flags);
+ }
/* mmap the file */
fd = open(path, O_RDONLY);
if (fd == -1) {
FILE *out = f;
int i;
- cols = 0; /* suppress warning */
+ if (cols == 0) {
+ fprintf(stderr, "sqlite can't get column names\n");
+ }
for (i=3;i<ncols;i++) {
if (i>3) fprintf(out, "\t");
fprintf(out, "%s", vals[i]);