Commit a991b39
authored
Fix unsigned comparison IAR compiler warnings (#81)
IAR treats enumerations with only positive values as unsigned types.
Checking commandType is positive raises a redundant unsigned compare
warning in IAR.
Since MQTTAgentCommandType_t is used as an array index,
negative values wouldn't be added to the enumeration.1 parent 3b74317 commit a991b39
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| |||
0 commit comments