summaryrefslogtreecommitdiff
path: root/net-p2p/monero/files/monero-gui-0.17.1.0-wallet-set-right-signedness.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/monero/files/monero-gui-0.17.1.0-wallet-set-right-signedness.patch')
-rw-r--r--net-p2p/monero/files/monero-gui-0.17.1.0-wallet-set-right-signedness.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-p2p/monero/files/monero-gui-0.17.1.0-wallet-set-right-signedness.patch b/net-p2p/monero/files/monero-gui-0.17.1.0-wallet-set-right-signedness.patch
new file mode 100644
index 00000000..79d5b98c
--- /dev/null
+++ b/net-p2p/monero/files/monero-gui-0.17.1.0-wallet-set-right-signedness.patch
@@ -0,0 +1,34 @@
+From fb802658e2205f6829f966b27455c000e6094529 Mon Sep 17 00:00:00 2001
+From: Bertrand Jacquin <bertrand@jacquin.bzh>
+Date: Sat, 17 Oct 2020 13:54:01 +0100
+Subject: [PATCH] wallet: set right signedness
+
+libwalletqt fails to build with gcc 9.3.0 and QT 5.14.2 with the
+following error
+
+ x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-0.17.1.0/src -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-0.17.1.0/contrib/epee/include -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-0.17.1.0/external/easylogging++ -fPIC -fstack-protector -fstack-protector-strong -Werror -Wformat -Wformat-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -std=gnu++11 -pthread -Wall -Wextra -D_REENTRANT -fPIC -DWITH_SCANNER -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-gui-0.17.1.0/monero/include -Isrc/libwalletqt -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-gui-0.17.1.0/src/QR-Code-generator -Isrc -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-gui-0.17.1.0/monero/src -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-gui-0.17.1.0/monero/external/easylogging++ -I/var/tmp/portage/net-p2p/monero-gui-0.17.1.0/work/monero-gui-0.17.1.0/monero/contrib/epee/include -Isrc/QR-Code-scanner -isystem /usr/include/libusb-1.0 -isystem /usr/include/hidapi -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui/5.14.2 -isystem /usr/include/qt5/QtGui/5.14.2/QtGui -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore/5.14.2 -isystem /usr/include/qt5/QtCore/5.14.2/QtCore -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o Wallet.o src/libwalletqt/Wallet.cpp
+ src/libwalletqt/Wallet.cpp: In lambda function:
+ src/libwalletqt/Wallet.cpp:1129:29: error: comparison of integer expressions of different signedness: 'const long int' and 'const size_t' {aka 'const long unsigned int'} [-Werror=sign-compare]
+ 1129 | if (elapsed >= refreshIntervalSec)
+ | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
+ cc1plus: all warnings being treated as errors
+ make: *** [Makefile:1934: Wallet.o] Error 1
+
+See: https://github.com/monero-project/monero-gui/pull/3173
+---
+ src/libwalletqt/Wallet.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
+index 454dca29b23f..93156c2b7b3d 100644
+--- a/src/libwalletqt/Wallet.cpp
++++ b/src/libwalletqt/Wallet.cpp
+@@ -1125,7 +1125,7 @@ void Wallet::startRefreshThread()
+ if (m_refreshEnabled)
+ {
+ const auto now = std::chrono::steady_clock::now();
+- const auto elapsed = std::chrono::duration_cast<std::chrono::seconds>(now - last).count();
++ const size_t elapsed = std::chrono::duration_cast<std::chrono::seconds>(now - last).count();
+ if (elapsed >= refreshIntervalSec)
+ {
+ refresh(false);