gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: change to remove compiler warnin


From: gnunet
Subject: [taler-merchant] branch master updated: change to remove compiler warnings for switch() cases that cannot really happen
Date: Wed, 15 Jul 2020 14:15:49 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 0a74c9c  change to remove compiler warnings for switch() cases that 
cannot really happen
0a74c9c is described below

commit 0a74c9cd713c49cf9bc071ec6758425a1464518c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jul 15 14:15:34 2020 +0200

    change to remove compiler warnings for switch() cases that cannot really 
happen
---
 src/backend/taler-merchant-httpd_private-patch-products-ID.c | 3 ++-
 src/backend/taler-merchant-httpd_private-post-orders.c       | 4 ++--
 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
index e8c0835..2e01b76 100644
--- 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
index 33883f5..0e06f7f 100644
--- 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)
         {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]