]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix -Wself-assign
authorMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:48:09 +0000 (12:48 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:48:09 +0000 (12:48 +0000)
commit2f6534527deef4dcc40001b93601761cf643a7c4
treeff2e43c639c368d9477622bd993fbaa9b8101924
parenteb70993a50c5c85b61d7b1cf9e4a7d6e5eb9a901
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.

Review: https://reviewboard.asterisk.org/r/4544/

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

Merged revisions 433690 from http://svn.asterisk.org/svn/asterisk/branches/11

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