]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix -Wbitfield-constant-conversion warning
authorMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:33:21 +0000 (12:33 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:33:21 +0000 (12:33 +0000)
commitfd50e5bfb5cef84e2397fbabb50091ee787bb7c9
tree8bc07985ef0dbd5e2f347a1cc5fdfa627fe2a54d
parentc747b3b12a66ae8618bb7737f1f50e834042a15d
clang compiler warnings: Fix -Wbitfield-constant-conversion warning

In chan_iax2, we attempt to assign a -1 to a bitfield. This gets caught by
clang, as it will truncate the -1 to a 1 implicitly.

Instead, we just assign the value a '1'.

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

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

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

Merged revisions 433684 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c