mirror of
https://github.com/xiph/opus.git
synced 2025-06-01 08:07:41 +00:00
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:
parent
17a29c2567
commit
d6335abedc
10 changed files with 40 additions and 46 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue