Wykres commitów

26 Commity (b31b82c8bd99e890835b0ab8f42cbf118481784e)

Autor SHA1 Wiadomość Data
David Ward f3162bafa8 Replace variable self-assignments to avoid Clang warnings
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.
2022-03-08 19:00:00 -05:00
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
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.
2021-06-08 19:01:41 +02:00
Olaf Meeuwissen e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
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.
2021-02-12 17:41:38 +09:00
Peter Marschall a94c17175f spelling fixes for sm3600 backend 2020-08-29 09:18:03 +02:00
Olaf Meeuwissen fcd537e207 sm3600: Fix [-Wimplicit-fallthrough] warning
This fixes the warning for both #define SM3600_SUPPORT_EXPOSURE values.
2019-08-10 20:49:09 +09:00
Povilas Kanapickas e40596c2a5 Fix -Wimplicit-fallthrough warnings by adding standard annotations 2019-06-30 11:58:32 +03:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen 8809927390 sm3600: fix [-Wunused-parameter] compiler warning 2016-07-18 17:10:56 +09:00
Olaf Meeuwissen a9c813944e Make libusb-1.0 the default for USB support
When libusb-1.0 is not found, libusb-0.1 will be tried.  On BeOS and
OS2, nothing should have changed in terms of detection of USB support.

On all systems the --enable-libusb* flags are now ignored.  Instead, the
--with-usb and --without-usb flags now control support.  When neither is
given USB support will be enable if possible and disabled otherwise.  If
--with-usb is requested but not possible, ./configure will fail.  There
is no support to prefer libusb-0.1 over libusb-1.0.
2016-07-01 23:44:37 +09:00
Olaf Meeuwissen 9d4f2a7209 sm3600: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:41:54 +09:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Julien BLACHE 7ca41423ac OPT_NUM_OPTS must be of type SANE_TYPE_INT. 2007-10-26 14:56:38 +00:00
Henning Geinitz a2f1183de1 Removed direct dependence of sm3600 on libusb. Used sanei_usb instead. Based on
patch from Francois Revol <revol@free.fr>.  Updated documentation
accordingly. Fixed compilation warnings.
2005-08-16 19:50:34 +00:00
Henning Geinitz e9f761d067 Don't check the result of usb_find_busses(). Based on patch from Julien BLACHE
<jb@jblache.org>.
2005-07-03 13:35:48 +00:00
Marian Eichholz 41b72dc6e6 Portability fixes and tweaks for sm3600 2004-04-15 19:56:53 +00:00
Henning Geinitz 0e70e29baf Moved union Option_Value from backend header files to sanei_backend.h. No need
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>.
2003-09-12 16:10:33 +00:00
Henning Geinitz 27beb7d01b Fixed comment headers. They were copied verbatim from the dll backend. 2003-04-02 14:04:06 +00:00
Henning Geinitz 249f649218 Move config.h include to the top of the include list to avoid compilation
errors on platforms not defining u_char. Added AIX lalloca check.
2002-12-04 17:33:46 +00:00
Marian Eichholz a1641eaedc sm3600 warningless <eichholz@computer.org> 2002-04-18 18:11:23 +00:00
Marian Eichholz dd3f41a5bd change request vom HMG honored <eichholz@computer.org> 2002-04-17 21:38:51 +00:00
Marian Eichholz 7e13df9195 sm3600 tree synced (eichholz@computer.org) 2002-04-15 21:30:48 +00:00
Marian Eichholz 31db505f02 sm3600: <marian@freenet-ag.de> better calibration and fixed non-statics 2001-05-30 22:35:46 +00:00
Marian Eichholz 44682ed3d4 build 3 of sm3600 2001-05-29 19:43:05 +00:00
Henning Geinitz c452492f59 setResolutions has only 5 instead of 6 resolutions.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-27 09:22:11 +00:00
Henning Geinitz 9904ee4f24 Made all non-sane-api functions static. Fixed some warnings.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-26 12:29:23 +00:00
Henning Geinitz 25703944ef Added sm3600 backend
(from Marian Eichholz <eichholz@computer.org>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-16 18:59:55 +00:00