Fixed warnings.

DEVEL_2_0_BRANCH-1
Frank Zago 2002-08-23 03:04:02 +00:00
rodzic d8bdabb406
commit 4152fd6811
3 zmienionych plików z 29 dodań i 15 usunięć

Wyświetl plik

@ -327,6 +327,8 @@ return SANE_STATUS_GOOD;
static SANE_Status
sense_handler (int scsi_fd, u_char * result, void *arg)
{
scsi_fd = scsi_fd; /* silence gcc */
arg = arg; /* silence gcc */
switch (result[2] & 0x0F)
{
@ -1861,6 +1863,8 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
size_t len;
FILE *fp;
authorize = authorize; /* silence gcc */
DBG_INIT ();
if (version_code)
@ -1922,6 +1926,8 @@ sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
Apple_Device *dev;
int i;
local_only = local_only; /* silence gcc */
if (devlist)
free (devlist);
@ -2656,6 +2662,8 @@ sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
{
DBG (FLOW_CONTROL,"sane_set_io_mode: Entering.\n");
handle = handle; /* silence gcc */
if (non_blocking)
{
DBG (FLOW_CONTROL, "sane_set_io_mode: Don't call me please. "
@ -2669,6 +2677,9 @@ return SANE_STATUS_GOOD;
SANE_Status
sane_get_select_fd (SANE_Handle handle, SANE_Int * fd)
{
handle = handle; /* silence gcc */
fd = fd; /* silence gcc */
DBG (FLOW_CONTROL, "sane_get_select_fd: Don't call me please. "
"Unimplemented function\n");
return SANE_STATUS_UNSUPPORTED;

Wyświetl plik

@ -50,6 +50,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <ctype.h>
@ -481,6 +482,8 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
char devnam[PATH_MAX] = "/dev/scanner";
FILE *fp;
authorize = authorize; /* silence gcc */
DBG_INIT ();
DBG (11, ">> sane_init\n");
@ -541,6 +544,9 @@ sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
static const SANE_Device **devlist = 0;
Ricoh_Device *dev;
int i;
local_only = local_only; /* silence gcc */
DBG (11, ">> sane_get_devices\n");
if (devlist)
@ -996,6 +1002,9 @@ sane_cancel (SANE_Handle handle)
SANE_Status
sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
{
handle = handle; /* silence gcc */
non_blocking = non_blocking; /* silence gcc */
DBG (5, ">> sane_set_io_mode\n");
DBG (5, "<< sane_set_io_mode\n");
@ -1005,6 +1014,9 @@ sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
SANE_Status
sane_get_select_fd (SANE_Handle handle, SANE_Int * fd)
{
handle = handle; /* silence gcc */
fd = fd; /* silence gcc */
DBG (5, ">> sane_get_select_fd\n");
DBG (5, "<< sane_get_select_fd\n");

Wyświetl plik

@ -110,9 +110,7 @@ static const SANE_Range default_y_range =
static inline void
_lto2b(val, bytes)
SANE_Int val;
SANE_Byte *bytes;
_lto2b(SANE_Int val, SANE_Byte *bytes)
{
bytes[0] = (val >> 8) & 0xff;
@ -120,9 +118,7 @@ _lto2b(val, bytes)
}
static inline void
_lto3b(val, bytes)
SANE_Int val;
SANE_Byte *bytes;
_lto3b(SANE_Int val, SANE_Byte *bytes)
{
bytes[0] = (val >> 16) & 0xff;
@ -131,9 +127,7 @@ _lto3b(val, bytes)
}
static inline void
_lto4b(val, bytes)
SANE_Int val;
SANE_Byte *bytes;
_lto4b(SANE_Int val, SANE_Byte *bytes)
{
bytes[0] = (val >> 24) & 0xff;
@ -143,8 +137,7 @@ _lto4b(val, bytes)
}
static inline SANE_Int
_2btol(bytes)
SANE_Byte *bytes;
_2btol(SANE_Byte *bytes)
{
SANE_Int rv;
@ -154,8 +147,7 @@ _2btol(bytes)
}
static inline SANE_Int
_3btol(bytes)
SANE_Byte *bytes;
_3btol(SANE_Byte *bytes)
{
SANE_Int rv;
@ -166,8 +158,7 @@ _3btol(bytes)
}
static inline SANE_Int
_4btol(bytes)
SANE_Byte *bytes;
_4btol(SANE_Byte *bytes)
{
SANE_Int rv;