commit 825c0b56190fab060cbe3564bb397419813ce6e9
parent 4b49c1470d145ddc1376818f98b63973d2e1ce45
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 4 Nov 2024 19:38:23 +0100
-fix more warnings
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/taler-mdb-qr-show.c b/src/taler-mdb-qr-show.c
@@ -149,6 +149,7 @@ show_qrcode (const char *uri)
unsigned int size;
size_t xOff;
size_t yOff;
+ unsigned int nwidth;
if (0 > qrDisplay.devicefd)
return; /* no display, no dice */
@@ -190,7 +191,7 @@ show_qrcode (const char *uri)
/* +8 for 4-pixels border */
size = GNUNET_MIN (qrDisplay.var_info.xres,
qrDisplay.var_info.yres);
- unsigned int nwidth = qrc->width + 8; /* 4 pixel border */
+ nwidth = qrc->width + 8; /* 4 pixel border */
xOff = 4 * size / nwidth;
yOff = 4 * size / nwidth;
if (qrDisplay.var_info.xres < qrDisplay.var_info.yres)