diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-12 00:27:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-12 00:27:38 +0400 |
commit | 660be3da39a419c17c953c6a5f483903129f886f (patch) | |
tree | c11639266f56843d4d412a27970fcf60d0eb6bcb /source/blender/blenlib/intern/math_base.c | |
parent | 8560b141ebb80e7f56626e4919b053e816fd3c98 (diff) |
use gcc warning -Wredundant-decls, exposes some odd/duplicate declarations which have been removed.
Diffstat (limited to 'source/blender/blenlib/intern/math_base.c')
-rw-r--r-- | source/blender/blenlib/intern/math_base.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_base.c b/source/blender/blenlib/intern/math_base.c index 6bb238ac612..38d303e667a 100644 --- a/source/blender/blenlib/intern/math_base.c +++ b/source/blender/blenlib/intern/math_base.c @@ -57,7 +57,14 @@ double round(double x) return copysign(y, x); } #else /* OpenSuse 11.1 seems to need this. */ +# ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wredundant-decls" +# endif double round(double x); +# ifdef __GNUC__ +# pragma GCC diagnostic pop +# endif #endif /* from python 3.1 floatobject.c |