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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-12 00:27:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-12 00:27:38 +0400
commit660be3da39a419c17c953c6a5f483903129f886f (patch)
treec11639266f56843d4d412a27970fcf60d0eb6bcb /source/blender/blenlib/BLI_math_base.h
parent8560b141ebb80e7f56626e4919b053e816fd3c98 (diff)
use gcc warning -Wredundant-decls, exposes some odd/duplicate declarations which have been removed.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r--source/blender/blenlib/BLI_math_base.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h
index aa4e697b48b..1f42d94b1dd 100644
--- a/source/blender/blenlib/BLI_math_base.h
+++ b/source/blender/blenlib/BLI_math_base.h
@@ -179,6 +179,11 @@
#include "intern/math_base_inline.c"
#endif
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wredundant-decls"
+#endif
+
/******************************* Float ******************************/
MINLINE float sqrt3f(float f);
@@ -217,6 +222,10 @@ extern double round(double x);
double double_round(double x, int ndigits);
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif
+
/* asserts, some math functions expect normalized inputs
* check the vector is unit length, or zero length (which can't be helped in some cases).
*/