File 0001-Fix-new-gcc-build-errors.patch of Package fontedit

From 7caa8a10a3097c531623d584186b920b076c5948 Mon Sep 17 00:00:00 2001
From: Frank Kunz <mailinglists@kunz-im-inter.net>
Date: Wed, 23 Aug 2023 11:15:37 +0200
Subject: [PATCH] Fix new gcc build errors

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>
---
 app/qfontfacereader.h             | 1 +
 app/ui/facewidget.h               | 1 +
 lib/src/fontsourcecodegenerator.h | 1 +
 lib/src/format.h                  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/app/qfontfacereader.h b/app/qfontfacereader.h
index a0a1b00..b84cc33 100644
--- a/app/qfontfacereader.h
+++ b/app/qfontfacereader.h
@@ -6,6 +6,7 @@
 #include <QImage>
 #include <memory>
 #include <utility>
+#include <optional>
 
 class QFontFaceReader : public f2b::font::face_reader
 {
diff --git a/app/ui/facewidget.h b/app/ui/facewidget.h
index dc755aa..2f8dafe 100644
--- a/app/ui/facewidget.h
+++ b/app/ui/facewidget.h
@@ -4,6 +4,7 @@
 #include <QGraphicsWidget>
 #include <QGraphicsGridLayout>
 #include <f2b.h>
+#include <optional>
 #include "focuswidget.h"
 
 #include <memory>
diff --git a/lib/src/fontsourcecodegenerator.h b/lib/src/fontsourcecodegenerator.h
index bce38a6..66a8fc3 100644
--- a/lib/src/fontsourcecodegenerator.h
+++ b/lib/src/fontsourcecodegenerator.h
@@ -348,6 +348,7 @@ template<typename T>
 std::string font_source_code_generator::generate(const font::face &face, std::string font_name)
 {
     switch (options_.export_method) {
+    default:
     case source_code_options::export_all:
         return generate_all<T>(face, font_name);
     case source_code_options::export_selected:
diff --git a/lib/src/format.h b/lib/src/format.h
index ba5b831..c5b9224 100644
--- a/lib/src/format.h
+++ b/lib/src/format.h
@@ -4,6 +4,7 @@
 #include <string>
 #include <iostream>
 #include <iomanip>
+#include <cstdint>
 #include "sourcecode.h"
 
 namespace f2b
-- 
2.41.0

openSUSE Build Service is sponsored by