GCC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-07-20 18:58:21 +03:00
parent 9375e0319d
commit dbcea3a979
2 changed files with 10 additions and 3 deletions

View File

@ -238,7 +238,7 @@ GCC_DEBUG_CXXFLAGS += \
-Wmissing-include-dirs \
-Wpacked \
-Wredundant-decls \
-Winline \
# -Winline \
-Winvalid-pch \
-Wunsafe-loop-optimizations \
-Wlong-long \
@ -427,7 +427,7 @@ CLANG_DEBUG_CXXFLAGS += \
-Winherited-variadic-ctor \
-Winit-self \
-Winitializer-overrides \
-Winline \
# -Winline \
-Wint-conversion \
-Wint-conversions \
-Wint-to-pointer-cast \

View File

@ -498,6 +498,10 @@ qreal estimate(int elen, qreal *e)
return Q;
}
#if defined(Q_CC_GNU)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
qreal incircleadapt(qreal *pa, qreal *pb, qreal *pc, qreal *pd, qreal permanent)
{
INEXACT qreal adx, bdx, cdx, ady, bdy, cdy;
@ -1031,6 +1035,9 @@ qreal incircleadapt(qreal *pa, qreal *pb, qreal *pc, qreal *pd, qreal permanent)
return finnow[finlength - 1];
}
#if defined(Q_CC_GNU)
#pragma GCC diagnostic pop
#endif
qreal incircle(qreal *pa, qreal *pb, qreal *pc, qreal *pd)
{