These were intended to suppress GCC warnings about unused variables.
However, this leads to different warnings from Clang instead.
Use another approach that suppresses warnings from both compilers.
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:
$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c
And manually removing the comment from pieusb.c. Everything still builds
fine.
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320.
to copy it over and over again. Changed header inclusion order in backend
files to include backend.h after sanei_backend.h. Based on a patch from stef
<stef-listes@wanadoo.fr>.
and others including unused options and variables concerning direct port
access. Removed wcam license (no "substantial portions of code" are used any
more). Removed unuesed headers. Made lots of global variables local. Lots of
checks for null pointer dereferences and errors when opening files or using
ioctl/mmap. Added option to select grey or color mode. Added support for
different channels. Fixed lots of options. Made sure ioctls are only used
when necessary. Used vendor == "Noname". Added ??? comments for suspicious
code. Lots of minor fixes and cleanup. Added version number: 1.0-2.
* AUTHORS: Added Tom Martone.
* PROJECTS: Removed bh (now included in sane).
* README: Added entry for sane-bh(5).
* TODO: Removed bh. Updated BearPaw entry. Added entry about v4l
problem.
* backend/v4l.c: Changed comment as v4l is part of the sane package.