From aae42f85cf3192581e758fa70d461137a738efb4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Nov 2021 15:15:28 +0100 Subject: -avoid warnings --- src/include/gnunet_pq_lib.h | 10 +++++++++- src/pq/pq_prepare.c | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index 6a2227581..549ce3638 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h @@ -335,7 +335,15 @@ struct GNUNET_PQ_ResultSpec */ #define GNUNET_PQ_result_spec_end \ { \ - NULL, NULL, NULL, NULL, 0, NULL, NULL \ + .conv = NULL, \ + .cleaner = NULL, \ + .cls = NULL, \ + .dst = NULL, \ + .dst_size = 0, \ + .fname = NULL, \ + .result_size = NULL, \ + .is_nullable = false, \ + .is_null = NULL \ } diff --git a/src/pq/pq_prepare.c b/src/pq/pq_prepare.c index 63087456f..76fc5c374 100644 --- a/src/pq/pq_prepare.c +++ b/src/pq/pq_prepare.c @@ -58,7 +58,7 @@ GNUNET_PQ_make_prepare (const char *name, * @return #GNUNET_OK on success, * #GNUNET_SYSERR on error */ -int +enum GNUNET_GenericReturnValue GNUNET_PQ_prepare_statements (struct GNUNET_PQ_Context *db, const struct GNUNET_PQ_PreparedStatement *ps) { -- cgit v1.2.3