Re: [asterisk-dev] [Code Review] 4537: clang compiler warning: -Wbitfield-constant-conversion

2015-03-28 Thread Diederik de Groot

---
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4537/
---

(Updated March 28, 2015, 7:31 a.m.)


Status
--

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
---

Committed in revision 433683


Bugs: ASTERISK-24917
https://issues.asterisk.org/jira/browse/ASTERISK-24917


Repository: Asterisk


Description
---

clang's static analyzer will throw quite a number warnings / errors during 
compilation, some of which can be very helpfull in finding corner-case bugs. 

clang compiler warning:-Wbitfield-constant-conversion

Changes:
chan_iax2.c:11898:18: warning: implicit truncation from 'int' to bitfield 
changes value from -1 to 1 [-Wbitfield-constant-conversion]
fr-outoforder = -1;
Changed to fr-outoforder = 1;


Diffs
-

  /branches/13/channels/chan_iax2.c 433444 

Diff: https://reviewboard.asterisk.org/r/4537/diff/


Testing
---


Thanks,

Diederik de Groot

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: [asterisk-dev] [Code Review] 4537: clang compiler warning: -Wbitfield-constant-conversion

2015-03-27 Thread Diederik de Groot

---
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4537/
---

(Updated March 27, 2015, 12:24 p.m.)


Review request for Asterisk Developers.


Bugs: ASTERISK-24917
https://issues.asterisk.org/jira/browse/ASTERISK-24917


Repository: Asterisk


Description (updated)
---

clang's static analyzer will throw quite a number warnings / errors during 
compilation, some of which can be very helpfull in finding corner-case bugs. 

clang compiler warning:-Wbitfield-constant-conversion

Changes:
chan_iax2.c:11898:18: warning: implicit truncation from 'int' to bitfield 
changes value from -1 to 1 [-Wbitfield-constant-conversion]
fr-outoforder = -1;
Changed to fr-outoforder = 1;


Diffs
-

  /branches/13/channels/chan_iax2.c 433444 

Diff: https://reviewboard.asterisk.org/r/4537/diff/


Testing
---


Thanks,

Diederik de Groot

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[asterisk-dev] [Code Review] 4537: clang compiler warning: -Wbitfield-constant-conversion

2015-03-27 Thread Diederik de Groot

---
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4537/
---

Review request for Asterisk Developers.


Bugs: ASTERISK-24917
https://issues.asterisk.org/jira/browse/ASTERISK-24917


Repository: Asterisk


Description
---

clang's static analyzer will throw quite a number warnings / errors during 
compilation, some of which can be very helpfull in finding corner-case bugs. 
clang compiler warning:-Wbitfield-constant-conversion


Diffs
-

  /branches/13/channels/chan_iax2.c 433444 

Diff: https://reviewboard.asterisk.org/r/4537/diff/


Testing
---


Thanks,

Diederik de Groot

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: [asterisk-dev] [Code Review] 4537: clang compiler warning: -Wbitfield-constant-conversion

2015-03-27 Thread Matt Jordan

---
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4537/#review14897
---

Ship it!



/branches/13/channels/chan_iax2.c
https://reviewboard.asterisk.org/r/4537/#comment25520

Interestingly enough, we don't use this value anywhere :-P

But that's a different problem.


- Matt Jordan


On March 27, 2015, 6:24 a.m., Diederik de Groot wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviewboard.asterisk.org/r/4537/
 ---
 
 (Updated March 27, 2015, 6:24 a.m.)
 
 
 Review request for Asterisk Developers.
 
 
 Bugs: ASTERISK-24917
 https://issues.asterisk.org/jira/browse/ASTERISK-24917
 
 
 Repository: Asterisk
 
 
 Description
 ---
 
 clang's static analyzer will throw quite a number warnings / errors during 
 compilation, some of which can be very helpfull in finding corner-case bugs. 
 
 clang compiler warning:-Wbitfield-constant-conversion
 
 Changes:
 chan_iax2.c:11898:18: warning: implicit truncation from 'int' to bitfield 
 changes value from -1 to 1 [-Wbitfield-constant-conversion]
 fr-outoforder = -1;
 Changed to fr-outoforder = 1;
 
 
 Diffs
 -
 
   /branches/13/channels/chan_iax2.c 433444 
 
 Diff: https://reviewboard.asterisk.org/r/4537/diff/
 
 
 Testing
 ---
 
 
 Thanks,
 
 Diederik de Groot
 


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: [asterisk-dev] [Code Review] 4537: clang compiler warning: -Wbitfield-constant-conversion

2015-03-27 Thread Diederik de Groot


 On March 27, 2015, 2:26 p.m., Matt Jordan wrote:
  /branches/13/channels/chan_iax2.c, line 11898
  https://reviewboard.asterisk.org/r/4537/diff/1/?file=72997#file72997line11898
 
  Interestingly enough, we don't use this value anywhere :-P
  
  But that's a different problem.

You are right, maybe we should schedule this bitfield for removal then.


- Diederik


---
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4537/#review14897
---


On March 27, 2015, 12:24 p.m., Diederik de Groot wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviewboard.asterisk.org/r/4537/
 ---
 
 (Updated March 27, 2015, 12:24 p.m.)
 
 
 Review request for Asterisk Developers.
 
 
 Bugs: ASTERISK-24917
 https://issues.asterisk.org/jira/browse/ASTERISK-24917
 
 
 Repository: Asterisk
 
 
 Description
 ---
 
 clang's static analyzer will throw quite a number warnings / errors during 
 compilation, some of which can be very helpfull in finding corner-case bugs. 
 
 clang compiler warning:-Wbitfield-constant-conversion
 
 Changes:
 chan_iax2.c:11898:18: warning: implicit truncation from 'int' to bitfield 
 changes value from -1 to 1 [-Wbitfield-constant-conversion]
 fr-outoforder = -1;
 Changed to fr-outoforder = 1;
 
 
 Diffs
 -
 
   /branches/13/channels/chan_iax2.c 433444 
 
 Diff: https://reviewboard.asterisk.org/r/4537/diff/
 
 
 Testing
 ---
 
 
 Thanks,
 
 Diederik de Groot
 


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev