From 660be3da39a419c17c953c6a5f483903129f886f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 11 Mar 2013 20:27:38 +0000 Subject: use gcc warning -Wredundant-decls, exposes some odd/duplicate declarations which have been removed. --- source/blender/blenlib/BLI_math_vector.h | 9 +++++++++ 1 file changed, 9 insertions(+) (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 5476978513e..a4afb3b5612 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -42,6 +42,11 @@ extern "C" { /************************************* Init ***********************************/ +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wredundant-decls" +#endif + MINLINE void zero_v2(float r[2]); MINLINE void zero_v3(float r[3]); MINLINE void zero_v4(float r[4]); @@ -261,6 +266,10 @@ 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); +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3