Adds many syntactically unnecessary parentheses to silence GCC -Wparentheses.

The object code is unchanged (except ectest). Also reenables -Wparentheses, -Wsign-compare,
and the MSVC warnings.
This commit is contained in:
Gregory Maxwell 2011-08-30 19:50:41 -04:00 committed by Jean-Marc Valin
parent 17a29c2567
commit d6335abedc
10 changed files with 40 additions and 46 deletions

View file

@ -15,12 +15,6 @@
/* Get rid of the CELT VS compile warnings */
#if 1
#pragma warning(disable : 4018)/* signed/unsigned mismatch */
#pragma warning(disable : 4244)/* conversion from 'double' to 'opus_val16', possible loss of data */
#pragma warning(disable : 4267)/* conversion from 'size_t' to 'int', possible loss of data */
#pragma warning(disable : 4305)/* truncation from 'double' to 'const float' */
#pragma warning(disable : 4311)/* pointer truncation from 'char *' to 'long' */
#pragma warning(disable : 4554)/* check operator precedence for possible error; use parentheses to clarify precedence */
#pragma warning(disable : 4996)/* This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. */
#endif