[sane-devel] [pieusb] Fix unused-parameter compiler warnings

Olaf Meeuwissen paddy-hack at member.fsf.org
Mon Sep 19 03:50:45 UTC 2016


Hi Klaus,

Your vacation service mentioned you'd be away until 2016-09-13.  Have
you had a chance to look at this already?

I have a patch lined up that simply removes all the unused code.  If
that's fine with you (or I don't get a reply ;-), I'll just go ahead
and push it at the end of September.

On 2016-08-28, Olaf Meeuwissen wrote:

> Hi Klaus,
>
> The following functions in pieusb_scancmd.c trigger a pile of unused
> parameter warnings:
>
>   sanei_pieusb_cmd_get_exposure_time
>   sanei_pieusb_cmd_get_halftone_pattern
>   sanei_pieusb_cmd_get_highlight_shadow
>   sanei_pieusb_cmd_set_ccd_mask
>   sanei_pieusb_cmd_set_halftone_pattern
>
> Upon closer inspection, I noticed that these functions are not called
> anywhere in the backend and all but the get-halftone-pattern are stubs.
>
> I'm trying to get rid of all compiler warnings and wondered how to fix
> this.  I can completely remove the functions from the code or mark all
> unused parameters with a __sane_unused__ on the assumption that they
> will be unstubbed and used in the (near?) future.
>
> What do you suggest?

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join




More information about the sane-devel mailing list