On Tue, 18 Jan 2011, holger@xxxxxxxxxxxxxxxx wrote: > The usage of the gcc option -Wunused-parameter interferes badly with > the assert() macros. In case -DNDEBUG is specified build fails with: > > cc1: warnings being treated as errors > print.c: In function 'ipset_print_family': > print.c:92: error: unused parameter 'opt' > print.c: In function 'ipset_print_port': > print.c:413: error: unused parameter 'opt' > print.c: In function 'ipset_print_proto': > > A possible fix is just to remove -Wunused, as -Wextra + -Wunused enables > -Wunused-paramter. I chose to keep the compiler flags and add the required attribute to the function parameters instead. Many thanks again, Holger! Best regards, Jozsef - E-mail : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxx PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt Address : KFKI Research Institute for Particle and Nuclear Physics H-1525 Budapest 114, POB. 49, Hungary -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html