Compiling BlueZ using GCC 10.0.1, which is the standard version for Fedora 32 distro:
$ gcc --version
gcc (GCC) 10.0.1 20200328 (Red Hat 10.0.1-0.11)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is just a snippet of the top of the error log:
In file included from android/tester-bluetooth.c:24:
android/tester-bluetooth.c:620:8: error: implicit conversion from ‘enum <anonymous>’ to ‘enum <anonymous>’ [-
Werror=enum-conversion]
620 | BT_DISCOVERY_STARTED),
| ^~~~~~~~~~~~~~~~~~~~
android/tester-main.h:63:27: note: in definition of macro ‘TEST_CASE_BREDRLE’
63 | sizeof((struct step[]) {__VA_ARGS__}) / sizeof(struct step), \
| ^~~~~~~~~~~
android/tester-bluetooth.c:619:3: note: in expansion of macro ‘CALLBACK_STATE’
619 | CALLBACK_STATE(CB_BT_DISCOVERY_STATE_CHANGED,
| ^~~~~~~~~~~~~~
android/tester-bluetooth.c:620:8: error: implicit conversion from ‘enum <anonymous>’ to ‘enum <anonymous>’ [-
Werror=enum-conversion]
620 | BT_DISCOVERY_STARTED),
| ^~~~~~~~~~~~~~~~~~~~
android/tester-main.h:64:20: note: in definition of macro ‘TEST_CASE_BREDRLE’
64 | (struct step[]) {__VA_ARGS__}, \
| ^~~~~~~~~~~
Hi Brian,
On Friday, 17 April 2020 20:44:30 CEST Gix, Brian wrote:
> Compiling BlueZ using GCC 10.0.1, which is the standard version for Fedora
> 32 distro:
> $ gcc --version
> gcc (GCC) 10.0.1 20200328 (Red Hat 10.0.1-0.11)
> Copyright (C) 2020 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> This is just a snippet of the top of the error log:
I've just sent patches for this and few other errors reported by GCC 10.
--
pozdrawiam
Szymon Janc