File revive-qt5.patch of Package qhexedit2
Index: qhexedit2-0.8.10/example/main.cpp
===================================================================
--- qhexedit2-0.8.10.orig/example/main.cpp
+++ qhexedit2-0.8.10/example/main.cpp
@@ -4,6 +4,7 @@
#include <QTranslator>
#include <QLocale>
#include <QFile>
+#include <optional>
#include "mainwindow.h"
@@ -87,11 +88,21 @@ int main(int argc, char *argv[])
case Status::VersionRequested:
parser.showVersion();
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
Q_UNREACHABLE_RETURN(0);
+#else
+ Q_UNREACHABLE();
+ return 0;
+#endif
case Status::HelpRequested:
parser.showHelp();
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
Q_UNREACHABLE_RETURN(0);
+#else
+ Q_UNREACHABLE();
+ return 0;
+#endif
}
if (query.hasFile)