]> 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:30:51 +0000 (12:30 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 28 Mar 2015 12:30:51 +0000 (12:30 +0000)
commitdc6249a2713a3aa1fd0c21ee20e1cfd9afbe1359
tree3896323b294c482b619932054353221ef6de2c59
parent297f7b16ff354cf232e1b043188f90c93d451a37
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)

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