Wykres commitów

8920 Commity (ddd7d821f68ab6f4389563c19d1915097f9c5a19)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen ddd7d821f6 sanei_thread: Fix [-Wformat=] compiler warnings 2017-07-15 17:07:13 +09:00
Olaf Meeuwissen ad09bbdd18 sanei_thread: Fix [-Wint-conversion] compiler warnings 2017-07-15 17:06:20 +09:00
Olaf Meeuwissen 3caf05c033 hp: Fix [-Wint-conversion] compiler warnings
Don't do yourself what sanei_thread does for you already ;-)
2017-07-15 17:00:08 +09:00
Olaf Meeuwissen df1aba21bc SANE_Pid: Fix [-Wint-conversion] issues
Not all pthreads implementations use an integer type for pthread_t.
As a matter of fact, POSIX has explicitly withdrawn the requirement
that it must be an arithmatic type.

The musl C library uses a `struct __pthread *` which triggered the
warnings.  As of this change, sanei_thread.h works around this by
providing two new macros to help keep this issue out of sight.  All
backends have been changed to use these macros.
2017-07-15 14:47:54 +09:00
Olaf Meeuwissen 3f8db8e2d0 AWARE: Treat compiler warnings as errors on the debian-9-* builds 2017-07-12 21:31:31 +09:00
Olaf Meeuwissen 3eb3d6b9bf plustek-pp: Fix [-Wmisleading-indentation] compiler warnings 2017-07-12 21:20:12 +09:00
Rolf Bensch 48cb209f2a pixma: backend version 0.17.42 2017-07-11 14:02:11 +02:00
Rolf Bensch 611647b61c pixma_imageclass.c: restrict image width to 215mm for i-SENSYS MF240 Series
this scanner produces black stripes in 216mm wide images @ 600dpi
2017-07-11 14:00:40 +02:00
Rolf Bensch 62fcf80c0b pixma: PIXMA TS5000 Series (#315764) and TS8000 Series (#315763) are working 2017-07-10 23:34:01 +02:00
Rolf Bensch 02a4ec11bf pixma: backend version 0.17.41 2017-07-10 23:12:56 +02:00
Rolf Bensch 862f265631 pixma: remove unreachable and depreciated websites from man page 2017-07-10 23:12:51 +02:00
Rolf Bensch 49ae62618c pixma_mp150.c: new generation 5 for scanners without special image format @ high dpi 2017-07-10 23:06:29 +02:00
Rolf Bensch 890aa30a7c pixma: i-SENSYS MF210 Series is working 2017-07-10 22:01:26 +02:00
Rolf Bensch fbbb6cabf3 pixma: fix capabilities for TS* Series 2017-07-10 21:47:40 +02:00
Rolf Bensch b5f78dd081 pixma_imageclass.c: fix image block size calculation for particular scanners 2017-07-10 21:46:57 +02:00
Olaf Meeuwissen a08f5630d8 sanei_scsi: Fix [-Wdeprecated-declarations] compiler warning
The readdir_r() using loop in sanei_scsi_find_devices() has been
modified to use readdir().

With the exception of sane_cancel(), the SANE API is not re-entrant.
The sanei_scsi_find_devices() function is referenced neither directly
nor indirectly from any of the sane_cancel() implementations so there
is no inherent need to use readdir_r().
2017-07-08 18:40:09 +09:00
Olaf Meeuwissen 0bf4595273 plustek: Fix [-Wpedantic] compiler warning
The warning reads:

  enumerator value for '_PS_INP_MIO6' is not an integer constant
  expression

and that comes about as _PS_INP_MIO6 evaluates to 0x8000000, which
does not fit in the *signed* integer range which has been allotted
to enumeration constants by ISO C99.

Seeing that the _PS_INP* values appear to be bitflags (despite the
arithmatic additions in backend/plustek-usbdev.c!) it is safer to
use #defines instead of an enum.
2017-06-26 19:19:52 +09:00
Olaf Meeuwissen a74cb99c1a u12: Fix [-Wmisleading-indentation] compiler warning
It appears that what the compiler has to do is what was intended.
Fixing the indentation to make that clearer.
2017-06-26 18:19:27 +09:00
Olaf Meeuwissen 6ad9e8479d pixma: Fix [-Wmisleading-indentation] compiler warning
There is no point in falling through the case branch so the break
should be at the same level as the if.
2017-06-26 18:07:11 +09:00
Olaf Meeuwissen 08e1ba1286 pieusb: Fix [-Wmisleading-indentation] compiler warning
The indentation has been aligned what is used inside the while loop.
The function appears to have been copied from elsewhere and slightly
modified.

The msg variable is set to NULL inside the if branch for efficiency
only.
2017-06-26 18:01:34 +09:00
Olaf Meeuwissen 3191056a4c microtek2: Fix [-Wmisleading-indentation] compiler warnings
The case branches have been made to follow other case branches in the
same switch.
2017-06-26 17:58:44 +09:00
Olaf Meeuwissen e04261673f magicolor: Fix [-Wmisleading-indentation] compiler warning
The assumption is that the failure should be returned to the caller.
2017-06-26 17:57:14 +09:00
Olaf Meeuwissen 0f90a5c2e3 hp: Fix [-Wmisleading-indentation] compiler warning
Indentation based on the style used in the immediate neighbourhood.
The file uses a mix of styles though.
2017-06-26 17:55:30 +09:00
Olaf Meeuwissen 2ff1d7da59 genesys: Fix [-Wmisleading-indentation] compiler warning
The fix is based on similar code in backend/genesys_gl846.c and fixes
a potential infinite loop as well.
2017-06-26 17:52:08 +09:00
Olaf Meeuwissen 5098b9bfbb genesys: Fix [-Wmisleading-indentation] compiler warnings 2017-06-26 17:51:40 +09:00
Olaf Meeuwissen a1133aa194 pnm: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:28:54 +09:00
Olaf Meeuwissen deb856cb27 umax: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:09:54 +09:00
Olaf Meeuwissen ff535ef1ea u12: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:09:39 +09:00
Olaf Meeuwissen 0c6fc8b174 snapscan: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:09:23 +09:00
Olaf Meeuwissen 582a3b8987 s9036: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:09:06 +09:00
Olaf Meeuwissen 73e1d3568d plustek_pp: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:08:51 +09:00
Olaf Meeuwissen 1a1c808c15 plustek: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:08:37 +09:00
Olaf Meeuwissen f8eb12b49d mustek: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:08:17 +09:00
Olaf Meeuwissen 02ce2b5d46 agfafocus: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:07:24 +09:00
Olaf Meeuwissen 702a8e27b6 p5: Fix [-Wunused-const-variable=] compiler warning
The u8_range and threshold_percentage_range constants have not been
used for anything ever since the backend's addition.  They probable
ended up in the code as a result of copy-and-paste.
2017-06-26 11:43:01 +09:00
Olaf Meeuwissen aa5468552b teco2: Fix [-Wunused-const-variable=] compiler warning
The default_dpi_color_adjust variable hasn't been used ever since the
backend was added.
2017-06-26 11:39:50 +09:00
Olaf Meeuwissen a2083538e9 tamarack: Fix [-Wunused-const-variable=] compiler warning
The u8_range has been `#if 0`'d to match the gamma options' have been
disabled (since the initial revision).  The options refer to u8_range.
2017-06-26 11:35:06 +09:00
Olaf Meeuwissen 2442ddf6d1 sp15c: Fix [-Wunused-const-variable=] compiler warning
The RCSid* variables have never been used for anything by the backend
code.
2017-06-26 11:28:10 +09:00
Olaf Meeuwissen 86ab41d8f1 mustek_usb: Fix [-Wunused-const-variable=] compiler warning
The brightness option that used the char_range variable was renamed to
threshold and changed to use u8_range in c95e4638.
2017-06-26 11:19:55 +09:00
Olaf Meeuwissen 39849809d1 mustek: Fix [-Wunused-const-variable=] compiler warning
The const variables' definition has been #ifdef'd to prevent loss of
protocol info.

Neither scsi_area_and_windows nor scsi_lookup_table appear to have
been used for anything.
2017-06-26 11:16:55 +09:00
Olaf Meeuwissen 398d5850fa avision: Fix [-Wunused-const-variable=] compiler warning
The const variable's definition has been #ifdef'd to prevent loss of
protocol info.
2017-06-26 11:08:03 +09:00
Olaf Meeuwissen 0f70ce9aac avision: Fix [-Wunused-const-variable=] compiler warning
The threshold option which used the abs_percentage_range was removed
in e2169ec4.
2017-06-26 11:05:01 +09:00
Olaf Meeuwissen 2f5c9e1499 kvs1025: Fix [-Wunused-const-variable=] compiler warning
The go_paper_max_width value hasn't been used for anything since the
initial revision of the file.
2017-06-26 11:02:50 +09:00
Olaf Meeuwissen ed0062d474 gt68xx: Fix [-Wunused-const-variable=] compiler warning
The options that used offset_range were removed in a3a8808b.
2017-06-26 11:02:50 +09:00
Olaf Meeuwissen fa44970473 epson2: Fix [-Wunused-const-variable=] compiler warning
The s8_range variable appears to be a left-over from the epson
backend's "fork" and became superfluous after refactoring the
colour correction support in the epson2 backend.
2017-06-26 11:02:16 +09:00
Olaf Meeuwissen 754a7164f3 dc25: Fix [-Wunused-const-variable=] compiler warning
The percentage_range hasn't been used for anything since the initial
revision of the file.

This also gets rid of a [-Wshift-negative-value] warning as well as a
"initializer element is not a constant expression" pedantic warning.
2017-06-26 11:00:29 +09:00
Olaf Meeuwissen a52d843da4 canon: Fix [-Wunused-const-variable=] compiler warning
The papersize_list hasn't been used for anything since the initial
revision of the file.
2017-06-26 10:34:14 +09:00
Olaf Meeuwissen fe3299a9b0 Add minimal and full CI compile tests for Debian 9 2017-06-22 20:36:59 +09:00
Olaf Meeuwissen e7d9779dfc CI: Build `git describe` versioned snapshot tarballs
This:
 - modifies `configure.ac` to get a version number courtesy of `git`
   when `autoconf` is run
 - runs a `make dist` when all compilation targets succeed
 - makes the resulting tarball available as a build artifact
 - renames the various pipeline stages
2017-06-17 12:38:21 +09:00
Olaf Meeuwissen a06e9a4075 Script updating of upstream files 2017-06-12 20:53:53 +09:00