mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Add settings for disable all warnings
This commit is contained in:
@ -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
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user