Skip to content
Snippets Groups Projects
Commit 1a458862 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry Committed by Jean-Marc Valin
Browse files

Disable parentheses warnings automatically.

This ensures we don't have to rely on build-system support for
 disabling these warnings in libcelt.
parent 09c67660
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,22 @@
#include "celt_types.h"
# if !defined(__GNUC_PREREQ)
# if defined(__GNUC__)&&defined(__GNUC_MINOR__)
# define __GNUC_PREREQ(_maj,_min) \
((__GNUC__<<16)+__GNUC_MINOR__>=((_maj)<<16)+(_min))
# else
# define __GNUC_PREREQ(_maj,_min) 0
# endif
# endif
# if defined(_MSC_VER)
# pragma warning(disable:4554)
# endif
# if __GNUC_PREREQ(4,2)
# pragma GCC diagnostic ignored "-Wparentheses"
# endif
#define CELT_SIG_SCALE 32768.f
#define celt_fatal(str) _celt_fatal(str, __FILE__, __LINE__);
......
......@@ -30,6 +30,7 @@
#endif
#include "entcode.h"
#include "arch.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment