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 \ -Wmissing-include-dirs \
-Wpacked \ -Wpacked \
-Wredundant-decls \ -Wredundant-decls \
-Winline \ # -Winline \
-Winvalid-pch \ -Winvalid-pch \
-Wunsafe-loop-optimizations \ -Wunsafe-loop-optimizations \
-Wlong-long \ -Wlong-long \
@ -427,7 +427,7 @@ CLANG_DEBUG_CXXFLAGS += \
-Winherited-variadic-ctor \ -Winherited-variadic-ctor \
-Winit-self \ -Winit-self \
-Winitializer-overrides \ -Winitializer-overrides \
-Winline \ # -Winline \
-Wint-conversion \ -Wint-conversion \
-Wint-conversions \ -Wint-conversions \
-Wint-to-pointer-cast \ -Wint-to-pointer-cast \
@ -641,7 +641,7 @@ ICC_DEBUG_CXXFLAGS += \
-Weffc++ \ -Weffc++ \
-Wextra-tokens \ -Wextra-tokens \
-Wformat \ -Wformat \
#-Winline \ # -Winline \
-Wmain \ -Wmain \
-Wmissing-declarations \ -Wmissing-declarations \
-Wmissing-prototypes \ -Wmissing-prototypes \

View File

@ -498,6 +498,10 @@ qreal estimate(int elen, qreal *e)
return Q; 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) qreal incircleadapt(qreal *pa, qreal *pb, qreal *pc, qreal *pd, qreal permanent)
{ {
INEXACT qreal adx, bdx, cdx, ady, bdy, cdy; 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]; return finnow[finlength - 1];
} }
#if defined(Q_CC_GNU)
#pragma GCC diagnostic pop
#endif
qreal incircle(qreal *pa, qreal *pb, qreal *pc, qreal *pd) qreal incircle(qreal *pa, qreal *pb, qreal *pc, qreal *pd)
{ {