alsa-lib fails test with clang-16

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

 



alsa-project/alsa-lib issue #323 was opened from fsvm88:

Hello,

While building is fine, testing alsa-lib on Gentoo fails since clang-16, due to clang-16 defaulting to c99.

The problem is at `alsa-lib-1.2.8/test/oldapi.c`, in the typedef declaration, which leads to the following error:
```
alsa-lib-1.2.8/test/oldapi.c:40:6: error: incompatible function pointer types assigning to 'myfcn *' (aka 'void (*)(void *)') from 'int (*)(const snd_pcm_hw_params_t *)' (aka 'int (*)(const struct _snd_pcm_hw_params *)') [-Werror,-Wincompatible-func
        fcn = &snd_pcm_hw_params_get_access;
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

[This is the Gentoo bug with all the information](https://bugs.gentoo.org/885551)

[I have created a patch based on the compiler's suggestion](https://885551.bugs.gentoo.org/attachment.cgi?id=861055), but I'm not sure if it's the right way to solve this.

Issue URL     : https://github.com/alsa-project/alsa-lib/issues/323
Repository URL: https://github.com/alsa-project/alsa-lib



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux