]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix -Wself-assign
authorMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:47:19 +0000 (12:47 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:47:19 +0000 (12:47 +0000)
commitbaa010e83d7beee648798ae2b23ff7b620b986d0
tree29bf9162dbb896751a8ee1496f8d34616c5d0321
parent844be81760b7198d83745c01c863768b434ac3ab
clang compiler warnings: Fix -Wself-assign

Assigning a variable to itself isn't super useful. However, the WAV format
modules make use of this in order to perform byte endian checks. This patch
works around the warning by only performing the self assignment if we are
going to do more than just assign it to ourselves. Which is odd, but true.

ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4544.patch submitted by dkdegroot (License 6600)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@433690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
formats/format_wav.c
formats/format_wav_gsm.c