diff options
Diffstat (limited to 'kde-apps/spectacle/files/spectacle-24.05.2-gcc12.patch')
-rw-r--r-- | kde-apps/spectacle/files/spectacle-24.05.2-gcc12.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kde-apps/spectacle/files/spectacle-24.05.2-gcc12.patch b/kde-apps/spectacle/files/spectacle-24.05.2-gcc12.patch new file mode 100644 index 000000000000..e60de2c07123 --- /dev/null +++ b/kde-apps/spectacle/files/spectacle-24.05.2-gcc12.patch @@ -0,0 +1,30 @@ +Allow building with GCC 12 +https://invent.kde.org/graphics/spectacle/-/merge_requests/383 + +--- a/src/Gui/Annotations/AnnotationDocument.cpp ++++ b/src/Gui/Annotations/AnnotationDocument.cpp +@@ -16,6 +16,7 @@ + #include <QQuickWindow> + #include <QScreen> + #include <memory> ++#include <source_location> + + using G = Geometry; + +@@ -73,12 +74,12 @@ + { + // Don't allow an invalid canvas rect or device pixel ratio. + if (rect.isEmpty()) { +- Log::warning() << std::format("`{}`:\n\t`rect` is empty. This should not happen.", +- std::source_location::current().function_name()); ++ Log::warning() << '`' << std::source_location::current().function_name() ++ << "`:\n\t`rect` is empty. This should not happen."; + return; + } else if (dpr <= 0) { +- Log::warning() << std::format("`{}`:\n\t`dpr` <= 0. This should not happen.", +- std::source_location::current().function_name()); ++ Log::warning() << '`' << std::source_location::current().function_name() ++ << "`:\n\t`dpr` <= 0. This should not happen."; + return; + } + const bool posChanged = m_canvasRect.topLeft() != rect.topLeft(); |