Closed listout closed 1 year ago
clang-16 enables -Werror=incompatible-pointer-types (along with buch of other warnings) by default, thus resulting in errors such as:
/var/tmp/portage/net-misc/dahdi-3.2.0/work/dahdi-linux-3.2.0/drivers/dahdi/dahdi-sysfs.c:272:27: error: initialization of �-Werror=incompatible-pointer-types][]] 272 | .uevent = span_uevent, | ^~~~~~~~~~~ /var/tmp/portage/net-misc/dahdi-3.2.0/work/dahdi-linux-3.2.0/drivers/dahdi/dahdi-sysfs.c:272:27: note: (near initialization for ‘spans_bus_type.uevent’) /var/tmp/portage/net-misc/dahdi-3.2.0/work/dahdi-linux-3.2.0/drivers/dahdi/dahdi-sysfs.c:709:27: error: initialization of �-Werror=incompatible-pointer-types][]] 709 | .uevent = device_uevent, | ^~~~~~~~~~~~~
This patch modifes some of the fucntions parameter types, making dahdi possible to be built with clang-16.
Bug: https://bugs.gentoo.org/906179
Feed back is always welcome
clang-16 enables -Werror=incompatible-pointer-types (along with buch of other warnings) by default, thus resulting in errors such as:
This patch modifes some of the fucntions parameter types, making dahdi possible to be built with clang-16.
Bug: https://bugs.gentoo.org/906179