From 215962873b3cc93383c725bb00e286f204e85e75 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:26:32 +0200 Subject: [PATCH] fix warning: unused variable "pdfExport" (should be fixed properly by original author by evaluating function-result) --- sources/print/projectprintwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/print/projectprintwindow.cpp b/sources/print/projectprintwindow.cpp index 5333f1a64..b8d7b019a 100644 --- a/sources/print/projectprintwindow.cpp +++ b/sources/print/projectprintwindow.cpp @@ -255,6 +255,9 @@ void ProjectPrintWindow::requestPaint() const bool pdfExport = (m_printer->outputFormat() == QPrinter::PdfFormat) && (dynamic_cast(painter.paintEngine()) != nullptr); +// plc-user: added because of "Warning: unused variable 'pdfExport'": +// should be fixed by original author by evaluating function-result! + (void)pdfExport; for (auto diagram : selectedDiagram()) {