ir-keytable compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sean,

I get these compiler warnings:

  CC       keymap.o
keytable.c:1832:76: warning: ‘struct toml_table_t’ declared inside parameter list will not be visible outside of this definition or
declaration
 1832 | static void attach_bpf(const char *lirc_name, const char *bpf_prog, struct toml_table_t *toml)
      |                                                                            ^~~~~~~~~~~~
keytable.c: In function ‘main’:
keytable.c:2108:42: warning: passing argument 3 of ‘attach_bpf’ from incompatible pointer type [-Wincompatible-pointer-types]

 2108 |     attach_bpf(rc_dev.lirc_name, fname, b->param);
      |                                         ~^~~~~~~
      |                                          |
      |                                          struct protocol_param *
keytable.c:1832:90: note: expected ‘struct toml_table_t *’ but argument is of type ‘struct protocol_param *’
 1832 | static void attach_bpf(const char *lirc_name, const char *bpf_prog, struct toml_table_t *toml)
      |                                                                     ~~~~~~~~~~~~~~~~~~~~~^~~~
  CCLD     ir-keytable

It's with gcc 9.2.

Can you take a look?

Regards,

	Hans



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux