Suppress GCC warnings.

This commit is contained in:
Roman Telezhynskyi 2024-02-12 13:49:01 +02:00
parent 25082b01c7
commit cd1b065e58

View File

@ -1004,7 +1004,13 @@ auto VFoldLine::ThreeXPoints() const -> QVector<QVector<QPointF>>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
auto VFoldLine::TwoArrowsData() const -> ArrowsTextPosData auto VFoldLine::TwoArrowsData() const -> ArrowsTextPosData
{ {
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
ArrowsTextPosData data; ArrowsTextPosData data;
QT_WARNING_POP
data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length()); data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length());
data.arrowsHeight = qFuzzyIsNull(m_height) ? defArrowsHeight : m_height; data.arrowsHeight = qFuzzyIsNull(m_height) ? defArrowsHeight : m_height;
return data; return data;
@ -1015,7 +1021,13 @@ auto VFoldLine::TwoArrowsTextAboveData() const -> ArrowsTextPosData
{ {
const qreal defLabelHeight = LabelTextHeight(); const qreal defLabelHeight = LabelTextHeight();
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
ArrowsTextPosData data; ArrowsTextPosData data;
QT_WARNING_POP
data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length()); data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length());
data.labelWidth = data.arrowsWidth; data.labelWidth = data.arrowsWidth;
data.arrowsHeight = data.arrowsHeight =
@ -1030,7 +1042,13 @@ auto VFoldLine::TwoArrowsTextUnderData() const -> ArrowsTextPosData
{ {
const qreal defLabelHeight = LabelTextHeight(); const qreal defLabelHeight = LabelTextHeight();
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
ArrowsTextPosData data; ArrowsTextPosData data;
QT_WARNING_POP
data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length()); data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length());
data.labelWidth = data.arrowsWidth * 0.9; data.labelWidth = data.arrowsWidth * 0.9;
data.labelHeight = qFuzzyIsNull(m_height) ? defLabelHeight : (defLabelHeight + CmToPixel(0.2)) - m_height; data.labelHeight = qFuzzyIsNull(m_height) ? defLabelHeight : (defLabelHeight + CmToPixel(0.2)) - m_height;