]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-11-simple-fetch.c
tdb2: move open routines into a separate file (open.c)
[ccan] / ccan / tdb2 / test / run-11-simple-fetch.c
index 447da9c2b5ee95d281d34f1f051806db1cf893f2..c16c28f8ea8c1def7ad0a75394fc264c99055d20 100644 (file)
@@ -1,5 +1,6 @@
 #include <ccan/failtest/failtest_override.h>
 #include <ccan/tdb2/tdb.c>
+#include <ccan/tdb2/open.c>
 #include <ccan/tdb2/free.c>
 #include <ccan/tdb2/lock.c>
 #include <ccan/tdb2/io.c>
@@ -43,7 +44,7 @@ int main(int argc, char *argv[])
                               O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
                ok1(tdb);
                if (tdb) {
-                       struct tdb_data d;
+                       struct tdb_data d = { NULL, 0 }; /* Bogus GCC warning */
 
                        /* fetch should fail. */
                        failtest_suppress = false;