From 83617429cf28f2a19e991a0f71d892fc159a4419 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 5 Aug 2013 12:49:13 +0000 Subject: Fix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must precede definition). --- source/blender/blenlib/BLI_math_vector.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source/blender/blenlib/BLI_math_vector.h') diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index e05783004c7..e163c06440c 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -36,10 +36,6 @@ extern "C" { #include "BLI_math_inline.h" -#if BLI_MATH_DO_INLINE -#include "intern/math_vector_inline.c" -#endif - /************************************* Init ***********************************/ #ifdef BLI_MATH_GCC_WARN_PRAGMA @@ -286,6 +282,12 @@ void fill_vn_i(int *array_tar, const int size, const int val); void fill_vn_ushort(unsigned short *array_tar, const int size, const unsigned short val); void fill_vn_fl(float *array_tar, const int size, const float val); +/**************************** Inline Definitions ******************************/ + +#if BLI_MATH_DO_INLINE +#include "intern/math_vector_inline.c" +#endif + #ifdef BLI_MATH_GCC_WARN_PRAGMA # pragma GCC diagnostic pop #endif -- cgit v1.2.3