diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-11-30 14:24:19 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-12-01 00:21:40 +0000 |
commit | d487c8c7e72666d5e926c4c6a499a0821796c694 (patch) | |
tree | 3db7f6ebdf0d3dcc0dc5bf7fcb2576e33504d534 | |
parent | 01603971a5534a01d0aead76861e9338a9171f42 (diff) |
SpeexDSP: Work around self assignments.
Disable -Wself-assign in speex/resample.c. Many macros (particularly
SATURATE32PSHR) simply return the first argument.
Change-Id: I3a8557833343e7b213031359e94af90d32d9f082
Reviewed-on: https://code.wireshark.org/review/12315
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r-- | codecs/speex/resample.c | 6 |
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) |