#16892: Luci Realtime Wireless graph broken in trunk due to new static function
declarations in iwinfo
------------------------------+---------------------------------------
Reporter: syoder@… | Owner: developers
Type: defect | Status: new
Priority: response-needed | Milestone: Attitude Adjustment 12.09
Component: packages | Version: Trunk
Resolution: | Keywords:
------------------------------+---------------------------------------
Comment (by hnyman):
@jow:
I tried the patch with my ar71xx/wndr3700 build, but gcc throws pointer
assignment warnings related to your additions:
warning: ISO C forbids assignment between function pointer and 'void *'
[-Wpedantic]
Log:
{{{
src/luci-bwc.c: In function 'iwinfo_update':
src/luci-bwc.c:265:8: warning: ISO C forbids assignment between function
pointer and 'void *' [-Wpedantic]
probe = dlsym(iw, "iwinfo_type");
^
src/luci-bwc.c:270:10: warning: assignment makes pointer from integer
without a cast [enabled by default]
backend = probe(ifname);
^
src/luci-bwc.c: At top level:
src/luci-bwc.c:282:13: error: conflicting types for 'iwinfo_close'
static void iwinfo_close(void *iw)
^
In file included from /Openwrt/trunk/staging_dir/target-
mips_34kc_uClibc-0.9.33.2/usr/include/iwinfo.h:192:0,
from src/luci-bwc.c:35:
/Openwrt/trunk/staging_dir/target-
mips_34kc_uClibc-0.9.33.2/usr/include/iwinfo/utils.h:38:6: note: previous
declaration of 'iwinfo_close' was here
void iwinfo_close(void);
^
src/luci-bwc.c: In function 'iwinfo_close':
src/luci-bwc.c:286:9: warning: ISO C forbids assignment between function
pointer and 'void *' [-Wpedantic]
finish = dlsym(iw, "iwinfo_finish");
^
make[5]: *** [src/luci-bwc.o] Error 1
make[5]: Leaving directory `/Openwrt/trunk/build_dir/target-
mips_34kc_uClibc-0.9.33.2/luci/modules/admin-full'
*** Compilation of modules/admin-full failed!
make[4]: *** [gccbuild] Error 1
make[4]: Leaving directory `/Openwrt/trunk/build_dir/target-
mips_34kc_uClibc-0.9.33.2/luci'
make[3]: *** [/Openwrt/trunk/build_dir/target-
mips_34kc_uClibc-0.9.33.2/luci/.built] Error 2
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/16892#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets