Olaf Meeuwissen
a461a98bae
plustek-pp: Replace sys/signal.h include with signal.h
...
All other backends already `#include <signal.h>` directly, without any
configure time checking or problems.
Fixes [-Wcc] compiler warning on Alpine.
2017-07-15 22:48:29 +09:00
Olaf Meeuwissen
6a908d1ff1
hp3500: Fix [-Wunused-function] compiler warning
...
The sigtermHandler is only used when _POSIX_SOURCE is defined.
2017-07-15 22:15:18 +09:00
Olaf Meeuwissen
be92e7aa12
autofoo: Sync generated files
2017-07-15 22:06:05 +09:00
Olaf Meeuwissen
92a1a29e47
lib/isfdtype.c: Remove badly broken substitute
...
The substitute completely ignores the fdtype argument and only works
correctly for S_IFSOCK values. This happened to be the only way the
function was invoked but for safety's sake this has been replaced by
a local implementation that does pretty much the same thing, without
the misleading bit.
Found courtesy of a [-Wunused-parameter] compiler warning on Alpine.
2017-07-15 21:58:51 +09:00
Olaf Meeuwissen
d5a1669fc6
sanei_thread: Fix [-Wunused-function] compiler warning
...
The sanei_thread_set_invalid static function is only used by code that
exists if USE_PTHREAD is defined.
2017-07-15 20:27:28 +09:00
Olaf Meeuwissen
85aa887f86
CI: Add a Fedora 26 Clang build
2017-07-15 17:19:38 +09:00
Olaf Meeuwissen
a9013aa3e8
autofoo: Sync generated files
...
This pulls in the changes from 8b9a293f and 7e855c22 .
2017-07-15 17:17:21 +09:00
Olaf Meeuwissen
8b9a293fac
pthread: Disable support if pthread_t is *not* an integer type
...
The sanei_thread implementation assumes an integer type in case of
pthread based thread support. As anything else is unlikely to work
correctly, it's safer to just fall back to forked processes.
2017-07-15 17:13:34 +09:00
Olaf Meeuwissen
5aac1935db
pixma: Fix [-Wint-conversion] and [-Wpedantic] compiler warnings
...
These are also related to the SANE_Pid type issues.
2017-07-15 17:11:06 +09:00
Olaf Meeuwissen
938414f6c6
sanei_thread: Fix [-Wformat=] compiler warnings
2017-07-15 17:07:13 +09:00
Olaf Meeuwissen
f26dd9456d
sanei_thread: Fix [-Wint-conversion] compiler warnings
2017-07-15 17:06:20 +09:00
Olaf Meeuwissen
1079ddae4b
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
cb7e0ebe31
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
5f70aae5c5
AWARE: Treat compiler warnings as errors on the debian-9-* builds
2017-07-12 21:31:31 +09:00
Olaf Meeuwissen
4292626519
plustek-pp: Fix [-Wmisleading-indentation] compiler warnings
2017-07-12 21:20:12 +09:00
Rolf Bensch
ed70b90d71
pixma: backend version 0.17.42
2017-07-11 14:02:11 +02:00
Rolf Bensch
01d7dc0734
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
aedae57014
pixma: PIXMA TS5000 Series ( #315764 ) and TS8000 Series ( #315763 ) are working
2017-07-10 23:34:01 +02:00
Rolf Bensch
b1a5aad28c
pixma: backend version 0.17.41
2017-07-10 23:12:56 +02:00
Rolf Bensch
b676d51450
pixma: remove unreachable and depreciated websites from man page
2017-07-10 23:12:51 +02:00
Rolf Bensch
ffc2f139f7
pixma_mp150.c: new generation 5 for scanners without special image format @ high dpi
2017-07-10 23:06:29 +02:00
Rolf Bensch
c7e9cca3ec
pixma: i-SENSYS MF210 Series is working
2017-07-10 22:01:26 +02:00
Rolf Bensch
bce854687e
pixma: fix capabilities for TS* Series
2017-07-10 21:47:40 +02:00
Rolf Bensch
7b251e0694
pixma_imageclass.c: fix image block size calculation for particular scanners
2017-07-10 21:46:57 +02:00
Olaf Meeuwissen
c25f3f3979
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
8aa4a683da
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
2cb8ea53e5
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
f159a64af1
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
5f65396cf7
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
4005e72728
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
b5c8bfa3b5
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
58364e2280
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
2c075a43fd
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
181437177e
genesys: Fix [-Wmisleading-indentation] compiler warnings
2017-06-26 17:51:40 +09:00
Olaf Meeuwissen
2f1bec99c3
pnm: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:28:54 +09:00
Olaf Meeuwissen
2c98083350
umax: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:09:54 +09:00
Olaf Meeuwissen
812131f8ea
u12: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:09:39 +09:00
Olaf Meeuwissen
0400bd4e9d
snapscan: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:09:23 +09:00
Olaf Meeuwissen
3c090ef0a6
s9036: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:09:06 +09:00
Olaf Meeuwissen
05cfae4431
plustek_pp: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:08:51 +09:00
Olaf Meeuwissen
40f3c768e3
plustek: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:08:37 +09:00
Olaf Meeuwissen
989b229d7d
mustek: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:08:17 +09:00
Olaf Meeuwissen
449c0cde18
agfafocus: Fix [-Wshift-negative-value] compiler warning
2017-06-26 12:07:24 +09:00
Olaf Meeuwissen
b792b933e8
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
2825e44e6a
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
06a317c811
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
1140f91e86
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
782c987890
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
93eae697d3
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
8527308c57
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