* [Qemu-devel] [PATCH] Add bt_host_hci prototype
@ 2008-12-18 13:17 Jan Kiszka
2009-01-14 17:43 ` [Qemu-devel] " Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-12-18 13:17 UTC (permalink / raw)
To: qemu-devel
Silence compiler warning by providing a prototype in the CONFIG_BLUEZ
case (hw/bt.h provides it otherwise).
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
bt-host.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bt-host.c b/bt-host.c
index 3c7b270..6ab945d 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -32,6 +32,8 @@
# include <bluetooth/bluetooth.h>
# include <bluetooth/hci.h>
# include <bluetooth/hci_lib.h>
+/* Silence compiler warning */
+struct HCIInfo *bt_host_hci(const char *id);
# else
# include "hw/bt.h"
# define HCI_MAX_FRAME_SIZE 1028
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH] Add bt_host_hci prototype
2008-12-18 13:17 [Qemu-devel] [PATCH] Add bt_host_hci prototype Jan Kiszka
@ 2009-01-14 17:43 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2009-01-14 17:43 UTC (permalink / raw)
To: qemu-devel
Jan Kiszka wrote:
> Silence compiler warning by providing a prototype in the CONFIG_BLUEZ
> case (hw/bt.h provides it otherwise).
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> bt-host.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/bt-host.c b/bt-host.c
> index 3c7b270..6ab945d 100644
> --- a/bt-host.c
> +++ b/bt-host.c
> @@ -32,6 +32,8 @@
> # include <bluetooth/bluetooth.h>
> # include <bluetooth/hci.h>
> # include <bluetooth/hci_lib.h>
> +/* Silence compiler warning */
> +struct HCIInfo *bt_host_hci(const char *id);
> # else
> # include "hw/bt.h"
> # define HCI_MAX_FRAME_SIZE 1028
>
>
>
This warning still bugs us, please apply this or any better fix.
Jan
--
Siemens AG, Corporate Technology, CT SE 26
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-14 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 13:17 [Qemu-devel] [PATCH] Add bt_host_hci prototype Jan Kiszka
2009-01-14 17:43 ` [Qemu-devel] " Jan Kiszka
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).