Open Skeeve opened 2 years ago
gcc -Wall -W -O2 -pipe -c rbldnsd.c -DVERSION="\"0.998a (06 Sep 2016)\""
In file included from rbldnsd.c:30:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
| ^~~~~~~
POSIX has said to use <poll.h>
for at least 20 years, so this is an easy fix: https://pubs.opengroup.org/onlinepubs/009695399/basedefs/poll.h.html
rbldnsd_util.c: In function 'parse_time':
rbldnsd_util.c:50:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
50 | case 'w': case 'W': m *= 7; /* week */
| ~~^~~~
These aren't usually problems and are only shown because of -Wall
. I hid them in https://github.com/spamhaus/rbldnsd/commit/befeec83ec00a8909c4d7c85c736e9c1499745d5.
rbldnsd_zones.c:207:2: warning: #warning NS record compatibility mode: remove for 1.0 final [-Wcpp]
207 | #warning NS record compatibility mode: remove for 1.0 final
| ^~~~~~~
This was fixed in https://github.com/spamhaus/rbldnsd/commit/b656295f68ba0b6e3dd76e480eb79e2b8e2e7493. so I think the sys/poll.h
thing is all that's left. Then maybe it's time for a new release :)
I compiled under alpine linux in a docker container.
Dockerfile used: