bugzilla-daemon at netfilter.org
2019-Oct-27 12:54 UTC
[Bug 976] invalid conversion from 'void*' to 'xt_entry_target*'
https://bugzilla.netfilter.org/show_bug.cgi?id=976 Christopher Wecht <wechtc at gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wechtc at gmail.com --- Comment #2 from Christopher Wecht <wechtc at gmail.com> --- There is another problem with this function. Pointer arithmetic on void pointers in illegal in either C and C++, it is an extension of GCC: https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html To be compliant to both standards, the expression should look something like this. return (xt_entry_target *)((char *)e + e->target_offset); -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20191027/fc1683f2/attachment.html>