Wykres commitów

8607 Commity (2d6fad58b4c61d59bec3879dab9ccf0c1b88dd11)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen 82720a2023 sharp: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen da010d6088 niash: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen 86c5d6d7bd nec: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen 220429ff9e mustek_usb2: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen 7efb056272 mustek_pp: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen 664398cc31 mustek: fix [-Wunused-but-sed-variable] compiler warnings 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen 8b75c6d450 microtek2: fix another [-Wunused-but-set-variable] compiler warning
This allows for the fact that the backend may be compiled with and
without support for authorization.
2015-12-27 18:41:54 +09:00
Olaf Meeuwissen c145877095 microtek2: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:41:54 +09:00
Olaf Meeuwissen 26aa8b52f6 magicolor: fix [-Wunused-function] compiler warning
This function is only used when SNMP support is activated.
2015-12-27 18:41:44 +09:00
Olaf Meeuwissen 292dd42bb6 magicolor: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen d0e85e9d5e ma1509: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen 7c0f5ec66c lexmark: fix [-Wmaybe-uninitialized] compiler warning
This adds a default handler to switch statement so low_get_start_loc()
bails before the start_600 variable is used.
2015-12-27 18:38:50 +09:00
Olaf Meeuwissen 068c3bb75d kodakaio: fix [-Wunused-function] compiler warning
The function is only used when Avahi support is enabled and has been
put in a suitable compilation scope.
2015-12-27 18:38:50 +09:00
Olaf Meeuwissen 610dc9ceb4 kodak: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen 2724f85552 hpsj5s: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen aabb63dbbf hp4200: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen a82798d5e1 hp3500: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Olaf Meeuwissen 51277aec4a hp: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen a97b1738df gphoto2: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen cbeb98daec epson: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen cbc72a0171 dmc: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen fb4147c4f1 dc240: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen bcfa3f6591 dc210: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen c31cf62106 dc25: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen 43b296471b coolscan: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:41 +09:00
Olaf Meeuwissen 50ca4bc976 cardscan: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:40 +09:00
Olaf Meeuwissen c2b7b1af74 canon636u: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:40 +09:00
Olaf Meeuwissen e881843745 canon: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:40 +09:00
Olaf Meeuwissen 592430016c avision: fix [-Wunused-but-set-variable] compiler warning
The variable seems to have been superseded by conv_out_size in the
else branch of set_calib_data().
2015-12-27 18:38:40 +09:00
Olaf Meeuwissen 5b8fdd317f artec_eplus48u: fix [-Wunused-but-set-variable] compiler warning
This leaves the sane_close() implementation just as broken as it has
been from the initial commit sometime in 2002.
2015-12-27 18:38:17 +09:00
Olaf Meeuwissen ec1936713e artec_eplus48u: fix [-Wunused-but-set-variable] compiler warning
The variable was only used to silence a [-Wunused-parameter] warning.
2015-12-27 18:38:17 +09:00
Olaf Meeuwissen 5b21a24312 artec: fix [-Wunused-but-set-variable] compiler warning
The variable is used to assign return values but is not referenced by
anything itself.
2015-12-27 18:38:17 +09:00
Olaf Meeuwissen 57ae115eaf sanei_thread: fix [-Wmaybe-uninitialized] compiler warning 2015-12-27 18:38:16 +09:00
Olaf Meeuwissen cd3453948d sanei_usb: const_cast data buffer
The libusb_bulk_transfer() API caters to both reads and writes and
as a result of that will not take a const pointer.
2015-12-27 18:38:03 +09:00
Olaf Meeuwissen be084e0d7b sanei_usb: Move variable declarations to scope of usage
Fixes an [-Wunused-variable] when compiling without libusb.
2015-12-27 15:36:18 +09:00
Olaf Meeuwissen 0d7882e34b Change compile time warning policy
The -Wall flag is now always enabled (when using gcc).  The -Wextra
flag (previously known as -W) and -pedantic flags are, by default,
enabled during development but disabled for releases.

All other flags have been removed.
2015-12-26 16:51:44 +09:00
Olaf Meeuwissen 5136e664b8 Document ChangeLog policy change 2015-12-20 21:58:45 +09:00
Olaf Meeuwissen 674b75fc91 Improve readability of condition
This also fixes the following GCC warning:

  warning: logical not is only applied to the left hand side of comparison
2015-12-20 17:33:55 +09:00
Volker Diels-Grabsch 58052a7ce6 Change GCC mode from ISO C90 to ISO C99
Add GCC flag "-std=c99".  Also remove GCC flag "-ansi" which is an
alias for "-std=c90" and would make the flag "-std=c99" ineffective.
This fixes all occurrences of the following GCC warning:

warning: ISO C90 does not support '__func__' predefined identifier
2015-12-20 15:27:45 +09:00
Volker Diels-Grabsch baec5e0395 Use consistently __func__ instead of __FUNCTION__
Some parts of SANE used __FUNCTION__ while other parts used __func__.
Now, __func__ is used consistently throughout the SANE sources.  This
fixes all occurrences of the following GCC warning:

warning: ISO C does not support '__FUNCTION__' predefined identifier
2015-12-20 15:27:45 +09:00
Volker Diels-Grabsch 93298674d0 Merge all compatibility macros around __func__ and __FUNCTION__
Various parts of SANE introduced their own compatibility macros for
old compilers that don't support __func__.  Most of these definitions
are identical or have minor differences.  This patch replaces them
with a single instance in the central header file for backends.
2015-12-20 15:27:45 +09:00
Volker Diels-Grabsch 7c8c8e29be Remove dead code due to unused variables
This fixes some occurrences of the following GCC warning:

warning: variable '...' set but not used
2015-12-20 15:21:45 +09:00
Volker Diels-Grabsch aba87a4582 Mark internal function toupper_ascii as static
This fixes the following GCC warning:

warning: no previous prototype for 'toupper_ascii'
2015-12-20 15:10:30 +09:00
Volker Diels-Grabsch 13b6faee2a Fix interface of helper function write_many
This fixes two occurrences of the following GCC warning:

warning: cast discards 'const' qualifier from pointer target type
2015-12-20 14:43:57 +09:00
Volker Diels-Grabsch badd7025b2 Bugfix: On error, return the actual error code in sanei_magic_rotate
Up to now, on failure the sanei_magic_rotate function returned a
success status.  This fixes the following GCC warning:

warning: variable 'ret' set but not used
2015-12-20 14:43:57 +09:00
Volker Diels-Grabsch 6aced758f4 Fix typos in comments
While reading through the SANE sources I noticed some annoying typos
in the comments.  This patch is my contribution to make the SANE
sources slightly more pleasant to read.
2015-12-20 14:43:56 +09:00
Alessandro Zummo 6d8b8d5aa6 epsonds: fix duplex w/ double feed detection 2015-12-15 16:17:53 +01:00
m. allan noah e9b52639e8 Add note about changelogs 2015-12-15 07:24:07 -05:00
Stéphane Voltz 06d876f74e fix for #315050
- handle case where linesel is rounded to 0 when scan y resolution is
  below minimal scan resolution but higher than half of the minimum
2015-12-15 06:05:07 +01:00
m. allan noah 753d123f36 canon_dr desc update
add note about mode switch on P-208
2015-11-29 21:42:07 -05:00