commit 0a74c9cd713c49cf9bc071ec6758425a1464518c
parent eec18999238cf247043e9f9c093b5bcfa1eb87ea
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 15 Jul 2020 14:15:34 +0200
change to remove compiler warnings for switch() cases that cannot really happen
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-patch-products-ID.c b/src/backend/taler-merchant-httpd_private-patch-products-ID.c
@@ -198,7 +198,8 @@ TMH_private_patch_products_ID (const struct TMH_RequestHandler *rh,
product_id,
&pd);
{
- MHD_RESULT ret;
+ MHD_RESULT ret = MHD_NO;
+
switch (qs)
{
case GNUNET_DB_STATUS_HARD_ERROR:
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -928,8 +928,8 @@ merge_inventory (struct MHD_Connection *connection,
&pd);
if (qs <= 0)
{
- enum TALER_ErrorCode ec;
- unsigned int http_status;
+ enum TALER_ErrorCode ec = TALER_EC_INTERNAL_INVARIANT_FAILURE;
+ unsigned int http_status = 0;
switch (qs)
{