Fix for clang build warnings: ATTR_WARN_UNUSED_RESULT is used after

the inline definitions are included, which gives lots of warnings
"attribute declaration must precede definition".

See also rB83617429cf28f2a19e991a0f71d892fc159a4419
This commit is contained in:
Lukas Tönne 2014-03-20 10:08:19 +01:00
parent 27e86ed832
commit 2ea78fb28f

@ -37,10 +37,6 @@ extern "C" {
#include "BLI_compiler_attrs.h"
#include "BLI_math_inline.h"
#if BLI_MATH_DO_INLINE
#include "intern/math_geom_inline.c"
#endif
#ifdef BLI_MATH_GCC_WARN_PRAGMA
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wredundant-decls"
@ -314,6 +310,12 @@ MINLINE int min_axis_v3(const float vec[3]);
MINLINE int poly_to_tri_count(const int poly_count, const int corner_count);
/**************************** Inline Definitions ******************************/
#if BLI_MATH_DO_INLINE
#include "intern/math_geom_inline.c"
#endif
#ifdef BLI_MATH_GCC_WARN_PRAGMA
# pragma GCC diagnostic pop
#endif