Fix all compiler warnings on the Debian 10 builds
For 1.0.27, we fixed all compiler warnings on Debian 9 (then Debian's stable release). Debian 10 was released shortly before our 1.0.28 and there are plenty of compiler warnings again. These should be fixed.
Combing through some recent build logs, i.e. those of this pipeline, we have the following warning counts (as counted by [-W
occurrences in the logs):
compile | warnings |
---|---|
debian-9-full |
0 |
debian-10-mini |
80 |
debian-10-full |
91 |
alpine-3.10-musl |
131 |
fedora-30-clang |
475 |
Classifying by category for debian-10-mini
we get:
category | count | components |
---|---|---|
cast-function-type |
29 |
sanei_net dll kvs40xx net |
format-overflow= |
14 |
plustek umax_pp |
format-truncation= |
3 |
dll gt68xx |
implicit-fallthrough |
1 | nec |
restrict |
12 |
umax_pp |
stringop-truncation |
16 |
artec as6e epjitsu gt68xx hp pieusb umax_pp scanimage |
sizeof-pointer-memaccess |
4 |
ibm ricoh |
tautological-compare |
1 |
hp3900 |
Please note that due to the build process, warnings for dll
and umax_pp
appear twice.
For the debian-10-full
build, the additional warnings are:
category | count | components |
---|---|---|
deprecated-declarations |
2 |
sanei_usb sane-find-scanner |
format-overflow= |
1 | pixma |
format-truncation= |
1 | pixma |
stringop-truncation |
4 | pixma |
tautological-compare |
3 |
hpsj5s |
Strike out indicates components whose warnings have been fixed.
Edited by Olaf Meeuwissen