aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2021-08-08 13:24:00 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2021-08-08 13:24:00 +0200
commit9b0697c03ccba29f5130509b2affe7ee5bbea2b3 (patch)
treeec739598b8e7b3d72cc339bbfc3d09e45880d2a8
parent411da700dd0ff36573f581650ae457fdcc692f31 (diff)
downloadgnunet-9b0697c03ccba29f5130509b2affe7ee5bbea2b3.tar.gz
gnunet-9b0697c03ccba29f5130509b2affe7ee5bbea2b3.zip
-silence compiler warnings
-rw-r--r--src/datastore/plugin_datastore_mysql.c2
-rw-r--r--src/datastore/plugin_datastore_postgres.c2
-rw-r--r--src/datastore/plugin_datastore_sqlite.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c
index 4f0e0838e..216a6faa4 100644
--- a/src/datastore/plugin_datastore_mysql.c
+++ b/src/datastore/plugin_datastore_mysql.c
@@ -994,7 +994,7 @@ mysql_plugin_get_expiration (void *cls,
994 void *proc_cls) 994 void *proc_cls)
995{ 995{
996 struct Plugin *plugin = cls; 996 struct Plugin *plugin = cls;
997 struct GNUNET_TIME_Absolute now; 997 struct GNUNET_TIME_Absolute now = { 0 };
998 struct GNUNET_MY_QueryParam params_select[] = { 998 struct GNUNET_MY_QueryParam params_select[] = {
999 GNUNET_MY_query_param_absolute_time (&now), 999 GNUNET_MY_query_param_absolute_time (&now),
1000 GNUNET_MY_query_param_end 1000 GNUNET_MY_query_param_end
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 66929f91a..8fb0bf6ee 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -729,7 +729,7 @@ postgres_plugin_get_expiration (void *cls,
729 void *proc_cls) 729 void *proc_cls)
730{ 730{
731 struct Plugin *plugin = cls; 731 struct Plugin *plugin = cls;
732 struct GNUNET_TIME_Absolute now; 732 struct GNUNET_TIME_Absolute now = { 0 };
733 struct GNUNET_PQ_QueryParam params[] = { 733 struct GNUNET_PQ_QueryParam params[] = {
734 GNUNET_PQ_query_param_absolute_time (&now), 734 GNUNET_PQ_query_param_absolute_time (&now),
735 GNUNET_PQ_query_param_end 735 GNUNET_PQ_query_param_end
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index f58955b7b..3c2d7f2d4 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -1029,7 +1029,7 @@ sqlite_plugin_get_replication (void *cls,
1029{ 1029{
1030 struct Plugin *plugin = cls; 1030 struct Plugin *plugin = cls;
1031 struct ReplCtx rc; 1031 struct ReplCtx rc;
1032 uint64_t rvalue; 1032 uint64_t rvalue = 0;
1033 uint32_t repl; 1033 uint32_t repl;
1034 struct GNUNET_SQ_QueryParam params_sel_repl[] = 1034 struct GNUNET_SQ_QueryParam params_sel_repl[] =
1035 { GNUNET_SQ_query_param_uint64 (&rvalue), 1035 { GNUNET_SQ_query_param_uint64 (&rvalue),
@@ -1096,7 +1096,7 @@ sqlite_plugin_get_expiration (void *cls,
1096{ 1096{
1097 struct Plugin *plugin = cls; 1097 struct Plugin *plugin = cls;
1098 sqlite3_stmt *stmt; 1098 sqlite3_stmt *stmt;
1099 struct GNUNET_TIME_Absolute now; 1099 struct GNUNET_TIME_Absolute now = { 0 };
1100 struct GNUNET_SQ_QueryParam params[] = { GNUNET_SQ_query_param_absolute_time ( 1100 struct GNUNET_SQ_QueryParam params[] = { GNUNET_SQ_query_param_absolute_time (
1101 &now), 1101 &now),
1102 GNUNET_SQ_query_param_end }; 1102 GNUNET_SQ_query_param_end };