Wykres commitów

8580 Commity (eba9c9e2391d59459e5fa3f362d8dc08d14c7b9c)

Autor SHA1 Wiadomość Data
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
Olaf Meeuwissen f1593204c7 Drop execute permission
Source code, description files and configuration templates should never
need to be executed.
2015-11-27 21:28:09 +09:00
Olaf Meeuwissen e094c5b43b Invert sense of sanei_thread validity check
Double negatives suck.
2015-11-24 18:19:31 +09:00
Olaf Meeuwissen fe12d31e68 Fix SANE_Pid related -Wsign-compare warnings
This may fix threading related issues on WIN32 platforms, BTW.
2015-11-24 18:19:31 +09:00
m. allan noah ed59056d40 canon_dr backend v54
- br_x and br_y locked to page_width/height until changed
2015-11-23 21:26:09 -05:00
m. allan noah d0ea697ab8 fujitsu backend v129
- br_x and br_y locked to page_width/height until changed
- add USB ID's for fi-6xxxLA and fi-6xxxZLA scanners
- add USB ID's for unsupported SP11xx scanners (genesys based)
2015-11-23 21:08:30 -05:00
m. allan noah e6a249e042 revert mustek_usb2 backend upgrade
Instead of 100+ revert commits, I've lumped everything into a
single commit. This removes all of dedf0ac30 through db7f038f1,
plus the parts of 497d59180 which were specific to mustek_usb2
2015-11-12 21:10:49 -05:00
Olaf Meeuwissen 21c5f4d814 Add missing #include for malloc() 2015-11-11 22:42:08 +09:00
Olaf Meeuwissen 7dc416b7ae Remove unnecessary cast 2015-11-11 22:42:08 +09:00
Olaf Meeuwissen fff1c5962a Fix "discards 'const' qualifier from pointer target type" warnings
The line variable is not (and cannot be) declared 'const'.  The string
variable points to a location in line, hence it is safe to cast away
'const'ness of the sanei_config_skip_whitespace() return value.
2015-11-11 22:41:58 +09:00
Olaf Meeuwissen 38153b33e1 Fix "discards 'const' qualifier from pointer target type" warning
The device2 variable is not modified so let's make that clear.
2015-11-11 22:41:42 +09:00
Olaf Meeuwissen d2576bbb94 Fix "discards 'const' qualifier from pointer target type" warnings
The cs3_xfree() functions is really just a checked call to free() so its
signature has been changed to match that.  The warnings that causes have
been fixed in the same way and on the same grounds as the previous commit.
2015-11-11 22:41:33 +09:00
Olaf Meeuwissen e65fd1b4cb Fix "discards 'const' qualifier from pointer target type" warnings
The resources pointed to have been acquired by the backend.  It is safe
to cast away the 'const' qualifier when releasing these resources.
2015-11-11 22:41:22 +09:00
m. allan noah 497d591806 automake for recent changes
updates to mustek_usb2, canon_dr and umax_pp require automake run
2015-11-08 17:17:37 -05:00
Jan Hauffa db7f038f10 Fix a bug introduced during refactoring that caused discolored stripes to appear at the left and right sides of the scan area. 2015-11-08 16:54:49 -05:00
Jan Hauffa a64477bf1a Remove USB 2.0 mode, as it causes horrible backtracking for resolutions > 300 dpi. 2015-11-08 16:54:49 -05:00
Jan Hauffa 98248f6088 properly add new handle to linked list 2015-11-08 16:54:49 -05:00
Jan Hauffa 3b48a6d105 fix integer overflow bug in image data conversion 2015-11-08 16:54:49 -05:00
Jan Hauffa d0ea79f000 Add model-specific functions for computing the number of motor steps. 2015-11-08 16:54:49 -05:00
Jan Hauffa 15fbbf60a6 Split SetMotorSteps into a function that computes the number of steps for the various motor states and and a function that writes the step counts to the controller's registers. 2015-11-08 16:54:49 -05:00
Jan Hauffa 70dcfa4ced Simplify SetMotorStepTable*. 2015-11-08 16:54:49 -05:00
Jan Hauffa 27b636d294 Provide model-specific function for computing the motor current. 2015-11-08 16:54:49 -05:00
Jan Hauffa 8f405f5a93 Update motor table generation according to new dumps. 2015-11-08 16:54:48 -05:00
Jan Hauffa 2fa054456e Detect USB controller type. 2015-11-08 16:54:48 -05:00
Jan Hauffa d8a203a693 Add function to compute scan motor table for 4800H48U, rearrange code in Asic_SetWindow. 2015-11-08 16:54:48 -05:00
Jan Hauffa ceb7d29690 Fix some misuse of SENSOR_DPI constant. 2015-11-08 16:54:48 -05:00
Jan Hauffa 30e3907156 Allow for model-specific parameters in mustek_usb2_high.c. 2015-11-08 16:54:48 -05:00
Jan Hauffa 47c56e3f19 Add some motor-related code for the Microtek 4800H48U. 2015-11-08 16:54:48 -05:00