[gimp] plug-ins: silence some warnings in twain plug-in.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: silence some warnings in twain plug-in.
- Date: Sat, 19 Sep 2020 12:06:28 +0000 (UTC)
commit 9e3508cc23c1d4ba376d7d2ab7361fdfc25ab1a9
Author: Jacob Boerema <jgboerema gmail com>
Date: Fri Sep 18 17:49:07 2020 -0400
plug-ins: silence some warnings in twain plug-in.
plug-ins/twain/tw_func.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/twain/tw_func.c b/plug-ins/twain/tw_func.c
index 8baa7b313a..79f2ac5296 100644
--- a/plug-ins/twain/tw_func.c
+++ b/plug-ins/twain/tw_func.c
@@ -696,7 +696,7 @@ cancelPendingTransfers(pTW_SESSION twSession)
static int
endImageTransfer(pTW_SESSION twSession, int *pendingCount)
{
- gboolean continueTransfers;
+ gboolean continueTransfers = FALSE;
int exitCode = twSession->twRC;
/* Have now exited the transfer for some reason... Figure out
@@ -713,6 +713,10 @@ endImageTransfer(pTW_SESSION twSession, int *pendingCount)
LogMessage("Failure received\n");
*pendingCount = endPendingTransfer(twSession);
break;
+
+ default:
+ *pendingCount = 0;
+ break;
}
/* Call the end transfer callback */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]