umax_pp: Fix [-Wunused-variable] compiler warnings

The variable declaration section has been completely rewritten to
follow the #ifdef structure of the function's implementation.
merge-requests/1/head
Olaf Meeuwissen 2017-07-22 14:02:10 +09:00
rodzic 56398ead60
commit 772f31d4a0
1 zmienionych plików z 13 dodań i 4 usunięć

Wyświetl plik

@ -926,13 +926,22 @@ sanei_parport_find_device (void)
int
sanei_umax_pp_initPort (int port, char *name)
{
int fd, ectr;
#ifndef IO_SUPPORT_MISSING
# ifdef HAVE_LINUX_PPDEV_H
int found = 0;
#if ((defined HAVE_IOPERM)||(defined HAVE_MACHINE_CPUFUNC_H)||(defined HAVE_LINUX_PPDEV_H))
int fd;
int mode, modes, rc;
#endif
#ifdef HAVE_LINUX_PPDEV_H
# ifdef PPGETMODES
char strmodes[160];
# endif
# endif
# ifdef HAVE_DEV_PPBUS_PP_H
int found = 0;
int fd;
# endif
# ifdef HAVE_IOPERM
int ectr;
# endif
#endif
/* since this function must be called before */