avahi-dev: redirecting incorrect #include <sys/poll.h> to <poll.h>
I get the subject’s compiler warning on 3.6 when turning on -Wall
.
My code makes sure to #include <poll.h>
for its own purposes before
including any avahi-*/*.h
file. That notwithstanding I get the above
warning.
It would be nice if your packages were -Wall
clean.
Here’s an example of what I get when turning on -Werror
as well.
gcc -DHAVE_CONFIG_H -I. -I/code/backend -I../include/sane -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0 -I. -I/code/backend -I../include -I/code/include -I/usr/include/libusb-1.0 -DLIBDIR="\"/usr/local/lib/sane\"" -D_REENTRANT -DBACKEND_NAME=net -Wall -Wextra -pedantic -DENABLE_PARPORT_DIRECTIO -g -O0 -Werror -MT libnet_la-net.lo -MD -MP -MF .deps/libnet_la-net.Tpo -c -o libnet_la-net.lo `test -f 'net.c' || echo '/code/backend/'`net.c
In file included from /usr/include/avahi-common/watch.h:25:0,
from /usr/include/avahi-client/client.h:29,
from /code/backend/kodakaio.c:216:
/usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp]
Upon closer inspection, I see that I set -pedantic
as well. Maybe I
should turn that off …
(from redmine: issue id 7581, created on 2017-07-21)