We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making all in tests make[1]: Entering directory '/home/claude/hamlib/tests' make all-am make[2]: Entering directory '/home/claude/hamlib/tests' CC rigmem-memsave.o memsave.c: In function ‘xml_save’: memsave.c:64:39: warning: passing argument 2 of ‘rig_get_chan_all_cb’ makes integer from pointer without a cast [-Wint-conversion] 64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root); | ^~~~~~~~~~~~~ | | | int (*)(RIG *, channel_t **, int, const chan_t *, void ) {aka int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void )} In file included from memsave.c:31: ../include/hamlib/rig.h:2588:42: note: expected ‘vfo_t’ {aka ‘unsigned int’} but argument is of type ‘int ()(RIG *, channel_t **, int, const chan_t *, void )’ {aka ‘int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void *)’} 2588 | vfo_t vfo, | ~~~~~~^~~ ../include/hamlib/rig.h:74:33: note: in definition of macro ‘HAMLIB_PARAMS’ 74 | # define HAMLIB_PARAMS(protos) protos | ^~~~~~ memsave.c:64:54: warning: passing argument 3 of ‘rig_get_chan_all_cb’ from incompatible pointer type [-Wincompatible-pointer-types] 64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root); | ^~~~ | | | xmlNodePtr {aka struct _xmlNode } In file included from memsave.c:31: ../include/hamlib/rig.h:2589:46: note: expected ‘chan_cb_t’ {aka ‘int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void *)’} but argument is of type ‘xmlNodePtr’ {aka ‘struct _xmlNode *’} 2589 | chan_cb_t chan_cb, | ~~~~~~~~~~^~~~~~~ ../include/hamlib/rig.h:74:33: note: in definition of macro ‘HAMLIB_PARAMS’ 74 | # define HAMLIB_PARAMS(protos) protos | ^~~~~~ memsave.c:64:14: error: too few arguments to function ‘rig_get_chan_all_cb’ 64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root); | ^~~~~~~~~~~~~~~~~~~ In file included from memsave.c:31: ../include/hamlib/rig.h:2587:1: note: declared here 2587 | rig_get_chan_all_cb HAMLIB_PARAMS((RIG *rig, | ^~~~~~~~~~~~~~~~~~~ memsave.c: In function ‘dump_xml_chan’: memsave.c:250:29: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘setting_t’ {aka ‘long long unsigned int’} [-Wformat=] 250 | sprintf(attrbuf, "%lx", chan.funcs); | ~~^ ~~~~~~~~~~ | | | | | setting_t {aka long long unsigned int} | long unsigned int | %llx make[2]: *** [Makefile:1353: rigmem-memsave.o] Error 1 make[2]: Leaving directory '/home/claude/hamlib/tests' make[1]: *** [Makefile:856: all] Error 2 make[1]: Leaving directory '/home/claude/hamlib/tests'
The text was updated successfully, but these errors were encountered:
Fix compilation with libxml2
99d568d
#456
196a97e
#456 (cherry picked from commit 99d568d)
No branches or pull requests
Making all in tests
make[1]: Entering directory '/home/claude/hamlib/tests'
make all-am
make[2]: Entering directory '/home/claude/hamlib/tests'
CC rigmem-memsave.o
memsave.c: In function ‘xml_save’:
memsave.c:64:39: warning: passing argument 2 of ‘rig_get_chan_all_cb’ makes integer from pointer without a cast [-Wint-conversion]
64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
| ^~~~~~~~~~~~~
| |
| int (*)(RIG *, channel_t **, int, const chan_t *, void ) {aka int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void )}
In file included from memsave.c:31:
../include/hamlib/rig.h:2588:42: note: expected ‘vfo_t’ {aka ‘unsigned int’} but argument is of type ‘int ()(RIG *, channel_t **, int, const chan_t *, void )’ {aka ‘int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void *)’}
2588 | vfo_t vfo,
| ~~~~~~^~~
../include/hamlib/rig.h:74:33: note: in definition of macro ‘HAMLIB_PARAMS’
74 | # define HAMLIB_PARAMS(protos) protos
| ^~~~~~
memsave.c:64:54: warning: passing argument 3 of ‘rig_get_chan_all_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
| ^~~~
| |
| xmlNodePtr {aka struct _xmlNode }
In file included from memsave.c:31:
../include/hamlib/rig.h:2589:46: note: expected ‘chan_cb_t’ {aka ‘int ()(struct s_rig *, struct channel **, int, const struct chan_list *, void *)’} but argument is of type ‘xmlNodePtr’ {aka ‘struct _xmlNode *’}
2589 | chan_cb_t chan_cb,
| ~~~~~~~~~~^~~~~~~
../include/hamlib/rig.h:74:33: note: in definition of macro ‘HAMLIB_PARAMS’
74 | # define HAMLIB_PARAMS(protos) protos
| ^~~~~~
memsave.c:64:14: error: too few arguments to function ‘rig_get_chan_all_cb’
64 | retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
| ^~~~~~~~~~~~~~~~~~~
In file included from memsave.c:31:
../include/hamlib/rig.h:2587:1: note: declared here
2587 | rig_get_chan_all_cb HAMLIB_PARAMS((RIG *rig,
| ^~~~~~~~~~~~~~~~~~~
memsave.c: In function ‘dump_xml_chan’:
memsave.c:250:29: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘setting_t’ {aka ‘long long unsigned int’} [-Wformat=]
250 | sprintf(attrbuf, "%lx", chan.funcs);
| ~~^ ~~~~~~~~~~
| | |
| | setting_t {aka long long unsigned int}
| long unsigned int
| %llx
make[2]: *** [Makefile:1353: rigmem-memsave.o] Error 1
make[2]: Leaving directory '/home/claude/hamlib/tests'
make[1]: *** [Makefile:856: all] Error 2
make[1]: Leaving directory '/home/claude/hamlib/tests'
The text was updated successfully, but these errors were encountered: