Commit e0d55f6c authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Disable excessive warnings about parentheses.

Doing this in the source keeps them disabled when someone doesn't
 use one of our build systems.
parent a53a6cc6
......@@ -38,6 +38,13 @@ typedef opus_int16 op_sample;
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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment