Failed to compile rohc_decomp.c using gcc-7
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
Rohc-2.0.x |
Invalid
|
Low
|
Didier Barvaux | |||
Rohc-2.1.x |
Fix Committed
|
Medium
|
Didier Barvaux | |||
Rohc-main |
Fix Released
|
Medium
|
Didier Barvaux |
Bug Description
Here's the compile error:
---
CC librohc_
rohc_decomp.c: In function ‘rohc_decomp_
rohc_decomp.
info-
~~
decomp-
~
rohc_decomp.
case 1:
^~~~
cc1: all warnings being treated as errors
Makefile:576: recipe for target 'librohc_
make[4]: *** [librohc_
---
We can re-factor the 'switch-case' code segment using 'if-else' statement to solve it.
I already have a fix and submit a pull request to master repository on github :
Thanks for reporting the problem and providing a fix.
Fixed in branches master and 2.1.x. Not required in branch 2.0.x.