File fix-return-warning.patch of Package openterface

--- Openterface_QT.orig/host/usbcontrol.cpp	2025-01-27 14:46:44.960814314 -0500
+++ Openterface_QT/host/usbcontrol.cpp	2025-01-27 16:40:35.066536110 -0500
@@ -122,6 +122,7 @@
     for(int i = 0; i < result; i++) {
         qDebug(log_usb) << "Data[" << i << "]:" << QString("0x%1").arg(data[i], 2, 16, QChar('0'));
     }
+    return 0;
 }
 
 int USBControl::testUVCControl()
diff --git a/serial/SerialPortManager.cpp b/serial/SerialPortManager.cpp
index 1a8c84c..493f59c 100644
--- a/serial/SerialPortManager.cpp
+++ b/serial/SerialPortManager.cpp
@@ -567,6 +567,8 @@ QString SerialPortManager::statusCodeToString(uint8_t status) {
             return "Command parameter error";
         case 0xE6:
             return "The data frame failed to execute properly";
+        default:
+            return "Unhandled case";
     } 
 }
 
diff --git a/ui/screenscale.cpp b/ui/screenscale.cpp
index 2e92168..f0269c6 100644
--- a/ui/screenscale.cpp
+++ b/ui/screenscale.cpp
@@ -65,6 +65,7 @@ double ScreenScale::converseRatio(QString ratio){
         double result = static_cast<double>(num1) / num2;
         return result;
     }
+    return 0;
 }
 
 QString ScreenScale::converseRatio(double ratio) {
@@ -96,4 +97,4 @@ void ScreenScale::onOkClicked()
 void ScreenScale::onCancelClicked()
 {
     reject(); // Close dialog with QDialog::Rejected status
-}
\ No newline at end of file
+}
openSUSE Build Service is sponsored by