Fix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must precede definition).

This commit is contained in:
Brecht Van Lommel
2013-08-05 12:49:13 +00:00
parent 28f893f23a
commit 83617429cf
2 changed files with 8 additions and 4 deletions

View File

@@ -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

View File

@@ -1420,7 +1420,9 @@ BMVert *bmesh_semv(BMesh *bm, BMVert *tv, BMEdge *e, BMEdge **r_e)
e->l = NULL;
if (l_next) {
BMLoop *l_new, *l;
#ifndef NDEBUG
int radlen = bmesh_radial_length(l_next);
#endif
int first1 = 0, first2 = 0;
/* Take the next loop. Remove it from radial. Split it. Append to appropriate radials */