From: Hans Verkuil <hverkuil@xs4all.nl>
To: Sean Young <sean@mess.org>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: ir-keytable compiler warnings
Date: Mon, 2 Sep 2019 14:42:45 +0200 [thread overview]
Message-ID: <03899f78-498c-cd37-ac0d-7b3d34852f3a@xs4all.nl> (raw)
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
next reply other threads:[~2019-09-02 12:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-02 12:42 Hans Verkuil [this message]
2019-09-02 13:00 ` ir-keytable compiler warnings Sean Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=03899f78-498c-cd37-ac0d-7b3d34852f3a@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=sean@mess.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).