Bug #3114
Linker error with 4.1-484 in openelec build env
100%
Description
Getting following linker error when building latest tvh (4.1-484) with openelec build env:
CC bundle.o
CC tvheadend
In function 'tasklet_disarm.constprop',
inlined from 'dvr_disk_space_done' at src/dvr/dvr_rec.c:1228:3,
inlined from 'dvr_done' at src/dvr/dvr_config.c:1071:3,
inlined from 'main' at src/main.c:1120:145:
src/main.c:380:7: error: attempt to free a non-heap object 'dvr_disk_space_tasklet' [-Werror=free-nonheap-object]
free(tsk);
^
lto1: all warnings being treated as errors
History
Updated by Kai Sommerfeld about 9 years ago
Ofc this is a compiler error, not a linker error. ;-)
Updated by Jaroslav Kysela about 9 years ago
It's definitely a false positive from the compiler - the tsk->tsk_allocated is zero in this case. I think that it was an issue with gcc 5.0 (and it's fixed in gcc 5.1).