Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2014-03-20 13:08:19 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-03-20 16:16:59 +0400
commit2ea78fb28f5f90c736b6d048b5e1f1d787c48920 (patch)
tree8c760b65bd4a523a115bba2e7a012dd27f4ca60c /source/blender/blenlib/BLI_math_geom.h
parent27e86ed8324c5cc72e58f61231018b6c77689f03 (diff)
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
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r--source/blender/blenlib/BLI_math_geom.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h
index 8b5190b9672..633887e3ef8 100644
--- a/source/blender/blenlib/BLI_math_geom.h
+++ b/source/blender/blenlib/BLI_math_geom.h
@@ -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