pbiering/ipv6calc

Compilation fails due to unused parameter errors

Closed this issue · 1 comments

Though I had succeeded at compiling the code from git in recent past, the recent code fails to compile due to unused parameter errors.

make[2]: Entering directory '/var/build-git/ipv6calc/databases/lib'
gcc -c libipv6calc_db_wrapper.c -D_GNU_SOURCE -O2 -Wall -g -fPIC -Wformat -Werror -Werror=format-security -Wsizeof-array-argument -Wextra -Werror=format-truncation=0 -Werror=char-subscripts -D__EXTENSIONS__ -fPIC -I../../lib -I../..
libipv6calc_db_wrapper.c: In function ‘libipv6calc_db_dump’:
libipv6calc_db_wrapper.c:3842:126: error: unused parameter ‘outputtype’ [-Werror=unused-parameter]
 3842 | p(const int source, const int selector, const s_ipv6calc_filter_master *filter_master, const uint32_t outputtype, const uint32_t formatoptions, const char *name_ipset) {
      |                                                                                        ~~~~~~~~~~~~~~~^~~~~~~~~~

libipv6calc_db_wrapper.c:3842:180: error: unused parameter ‘name_ipset’ [-Werror=unused-parameter]
 3842 | pv6calc_filter_master *filter_master, const uint32_t outputtype, const uint32_t formatoptions, const char *name_ipset) {
      |                                                                                                ~~~~~~~~~~~~^~~~~~~~~~

cc1: all warnings being treated as errors
make[2]: *** [Makefile:46: libipv6calc_db_wrapper.o] Error 1
make[2]: Leaving directory '/var/build-git/ipv6calc/databases/lib'
make[1]: *** [Makefile:42: all] Error 2
make[1]: Leaving directory '/var/build-git/ipv6calc/databases/lib'
make: *** [Makefile:124: db-wrapper-make] Error 2

sorry, currently somehow work-in-progress, had not tested all compilation variants.

fixed by b367a59