]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix autological comparisons
authorMatthew Jordan <mjordan@digium.com>
Thu, 9 Apr 2015 12:47:09 +0000 (12:47 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 9 Apr 2015 12:47:09 +0000 (12:47 +0000)
commit7c4efc490ae18be8430246748f3ceb74a8a752eb
treed52b1bbb8251e47c3c9a4b8e07dd45368d81394f
parent6b399f72dc77f647183953f970a88730109bc311
clang compiler warnings: Fix autological comparisons

This fixes autological comparison warnings in the following:
 * chan_skinny: letohl may return a signed or unsigned value, depending on the
   macro chosen
 * func_curl: Provide a specific cast to CURLoption to prevent mismatch
 * cel: Fix enum comparisons where the enum can never be negative
 * enum: Fix comparison of return result of dn_expand, which returns a signed
   int value
 * event: Fix enum comparisons where the enum can never be negative
 * indications: tone_data.freq1 and freq2 are unsigned, and hence can never be
   negative
 * presencestate: Use the actual enum value for INVALID state
 * security_events: Fix enum comparisons where the enum can never be negative
 * udptl: Don't bother to check if the return value from encode_length is less
   than 0, as it returns an unsigned int
 * translate: Since the parameters are unsigned int, don't bother checking
   to see if they are negative. The cast to unsigned int would already blow
   past the matrix bounds.

Review: https://reviewboard.asterisk.org/r/4533
ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4533.patch submitted by dkdegroot (License 6600)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_skinny.c
funcs/func_curl.c
include/asterisk/cel.h
main/cel.c
main/enum.c
main/event.c
main/indications.c
main/presencestate.c
main/security_events.c
main/translate.c
main/udptl.c