Thread (2 messages) 2 messages, 2 authors, 2012-10-01

Re: [PATCH] Fix userspace compilation of ip_tables.h/ip6_tables.h in C++ mode

flat view

From: David Miller <davem@davemloft.net>
Date: 2012-10-01 04:45:51
Also in: lkml

From: Jason Gunthorpe <redacted>
Date: Sun, 30 Sep 2012 17:17:37 -0600
The implicit cast from void * is not allowed for C++ compilers, and the
arithmetic on void * generates warnings in C++ mode.

$ g++ -c t.cc
ip_tables.h:221:24: warning: pointer of type 'void *' used in arithmetic
ip_tables.h:221:24: error: invalid conversion from 'void*' to 'xt_entry_target*'

Signed-off-by: Jason Gunthorpe <redacted>
Please post netfilter patches to netfilter-devel@vger.kernel.org

Thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help