From a86ef76e5ce073822c47a1ec8afa6aacb303ea05 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 24 Sep 2021 17:56:23 +0300 Subject: [PATCH] Compiler warnings. --- src/app/valentina/mainwindow.cpp | 2 +- src/libs/vlayout/warnings.pri | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 0031958b1..d36c55d24 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -5385,7 +5385,7 @@ bool MainWindow::LoadPattern(QString fileName, const QString& customMeasureFile) { // Quick reading measurements doc->setXMLContent(fileName); - const int currentFormatVersion = doc->GetFormatVersion(doc->GetFormatVersionStr()); + const unsigned currentFormatVersion = doc->GetFormatVersion(doc->GetFormatVersionStr()); if (currentFormatVersion != VPatternConverter::PatternMaxVer) { // Because we rely on the fact that we know where is path to measurements optimization available only for // the latest format version diff --git a/src/libs/vlayout/warnings.pri b/src/libs/vlayout/warnings.pri index 2f715e3cc..59c16118c 100644 --- a/src/libs/vlayout/warnings.pri +++ b/src/libs/vlayout/warnings.pri @@ -38,6 +38,9 @@ unix { QMAKE_LFLAGS += -fsanitize=undefined } } + + QMAKE_CXXFLAGS += \ + -Wno-stringop-overflow } *clang*{