shithub: opus

Download patch

ref: 80460334b77d70e665a390503cd8992cdad06c10
parent: 93fe3ce14f9eedff7edda494351c240721b034ec
author: Jean-Marc Valin <[email protected]>
date: Tue Sep 30 10:40:13 EDT 2014

-DOPUS_WILL_BE_SLOW to disable the no-optimization warning

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -33,7 +33,7 @@
 # error "OPUS_BUILD _MUST_ be defined to build Opus. This probably means you need other defines as well, as in a config.h. See the included build files for details."
 #endif
 
-#if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__OPTIMIZE__)
+#if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__OPTIMIZE__) && !defined(OPUS_WILL_BE_SLOW)
 # pragma message "You appear to be compiling without optimization, if so opus will be very slow."
 #endif