summaryrefslogtreecommitdiff
path: root/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'codecs')
-rw-r--r--codecs/speex/resample.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/codecs/speex/resample.c b/codecs/speex/resample.c
index 0a903792f0..148565d028 100644
--- a/codecs/speex/resample.c
+++ b/codecs/speex/resample.c
@@ -59,6 +59,8 @@
#include "config.h"
+#include "wsutil/ws_diag_control.h"
+
#define OUTSIDE_SPEEX 1
#define FLOATING_POINT 1
@@ -267,6 +269,8 @@ int main(int argc, char **argv)
}
#endif
+DIAG_OFF(self-assign) /* SATURATE32PSHR */
+
#ifdef FIXED_POINT
/* The slow way of computing a sinc for the table. Should improve that some day */
static spx_word16_t sinc(float cutoff, float x, int N, const struct FuncDef *window_func)
@@ -1201,3 +1205,5 @@ EXPORT const char *speex_resampler_strerror(int err)
return "Unknown error. Bad error code or strange version mismatch.";
}
}
+
+DIAG_ON(self-assign)