Compiler warnings.

develop
Roman Telezhynskyi 2021-09-24 17:56:23 +03:00
parent d83039c4ee
commit a86ef76e5c
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -38,6 +38,9 @@ unix {
QMAKE_LFLAGS += -fsanitize=undefined
}
}
QMAKE_CXXFLAGS += \
-Wno-stringop-overflow
}
*clang*{