Add settings for disable all warnings

This commit is contained in:
Oleg Korshul
2023-04-27 14:34:26 +03:00
parent 217ec901ed
commit 1dba0723c7
3 changed files with 1025 additions and 1020 deletions

View File

@ -408,10 +408,6 @@ plugin {
} }
} }
core_disable_all_warnings {
CONFIG += warn_off
}
# BUILD_PATHS # BUILD_PATHS
# MUST BE DEFINED CORE_ROOT_DIR # MUST BE DEFINED CORE_ROOT_DIR
!core_no_dst { !core_no_dst {
@ -546,3 +542,11 @@ defineTest(ADD_DEPENDENCY) {
ADD_INC_PATH = $$(ADDITIONAL_INCLUDE_PATH) ADD_INC_PATH = $$(ADDITIONAL_INCLUDE_PATH)
!isEmpty(ADD_INC_PATH):INCLUDEPATH += $$ADD_INC_PATH !isEmpty(ADD_INC_PATH):INCLUDEPATH += $$ADD_INC_PATH
!core_enable_all_warnings {
core_disable_all_warnings {
QMAKE_CXXFLAGS_WARN_OFF = -w
QMAKE_CFLAGS_WARN_OFF = -w
CONFIG += warn_off
}
}

File diff suppressed because it is too large Load Diff

View File

@ -319,14 +319,14 @@ namespace MetaFile
if (arDx.empty()) if (arDx.empty())
arNodeAttributes.push_back({L"text-anchor", L"end"}); arNodeAttributes.push_back({L"text-anchor", L"end"});
else else
dXCoord -= std::accumulate(arDx.begin(), arDx.end(), 0); dXCoord -= std::accumulate(arDx.begin(), arDx.end(), 0.0);
} }
else if (ulTextAlign == TA_CENTER) else if (ulTextAlign == TA_CENTER)
{ {
if (arDx.empty()) if (arDx.empty())
arNodeAttributes.push_back({L"text-anchor", L"middle"}); arNodeAttributes.push_back({L"text-anchor", L"middle"});
else else
dXCoord -= std::accumulate(arDx.begin(), arDx.end(), 0) / 2; dXCoord -= std::accumulate(arDx.begin(), arDx.end(), 0.0) / 2;
} }
else //if (ulTextAlign & TA_LEFT) else //if (ulTextAlign & TA_LEFT)
{ {