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*{