ref: e0d55f6ce520aa6bc407dfef4488ed2226765620
parent: a53a6cc6848a0d2a177fc574e3ab2cf5a949e65e
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Mon Oct 8 14:02:32 EDT 2012
Disable excessive warnings about parentheses. Doing this in the source keeps them disabled when someone doesn't use one of our build systems.
--- a/src/internal.h
+++ b/src/internal.h
@@ -38,6 +38,13 @@
typedef float op_sample;
# endif
+/*Disable excessive warnings about the order of operations.*/
+# if OP_GNUC_PREREQ(4,2)
+# pragma GCC diagnostic ignored "-Wparentheses"
+# elif defined(_MSC_VER)
+# pragma warning(disable:4554)
+# endif
+
# if OP_GNUC_PREREQ(3,0)
/*Another alternative is
(__builtin_constant_p(_x)?!!(_x):__builtin_expect(!!(_x),1))