build: Enable warning flags for bin/
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 19 Aug 2013 17:19:25 +0000 (14:19 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 19 Aug 2013 22:30:33 +0000 (19:30 -0300)
src/bin/Makefile.am
src/bin/test.c

index 4a33d31..cf893d4 100644 (file)
@@ -4,6 +4,8 @@ AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
        -I$(top_srcdir)/src/lib \
        @SQLITE3_CFLAGS@
+AM_CFLAGS = $(WARNINGFLAGS)
+AM_LDFLAGS = $(GCLDFLAGS)
 
 noinst_PROGRAMS = \
        test \
index 44ec980..9741b38 100644 (file)
@@ -407,14 +407,14 @@ show(lms_t *lms, const char *orig_path)
 
     while ((r = sqlite3_step(stmt)) == SQLITE_ROW) {
         uint64_t id;
-        const char *path;
+        const char *p;
         size_t size;
 
         id = sqlite3_column_int64(stmt, 0);
-        path = sqlite3_column_blob(stmt, 1);
+        p = sqlite3_column_blob(stmt, 1);
         size = sqlite3_column_int(stmt, 2);
 
-        printf("%" PRIu64 " \"%s\" %zd\n", id, path, size);
+        printf("%" PRIu64 " \"%s\" %zd\n", id, p, size);
     }
     printf("END: all files starting with directory '%s'\n", path);