• Bastien Nocera's avatar
    elan: Fix "garbage value" errors in elan_cmd_cb() · 69fe7a1b
    Bastien Nocera authored
    libfprint/drivers/elan.c:351:4: warning: 2nd function call argument is an uninitialized value
                            dbg_buf(elandev->last_read, transfer->actual_length);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libfprint/drivers/elan.c:46:5: note: expanded from macro 'dbg_buf'
        fp_dbg("%02x", buf[0]);                                  \
        ^~~~~~~~~~~~~~~~~~~~~~
    ../../../../../../Projects/jhbuild/libfprint/libfprint/fpi-log.h:52:16: note: expanded from macro 'fp_dbg'
     #define fp_dbg g_debug
                   ^
    libfprint/drivers/elan.c:351:4: warning: The left operand of '<<' is a garbage value
                            dbg_buf(elandev->last_read, transfer->actual_length);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libfprint/drivers/elan.c:48:27: note: expanded from macro 'dbg_buf'
        fp_dbg("%04x", buf[0] << 8 | buf[1]);                    \
                       ~~~~~~ ^
    libfprint/drivers/elan.c:351:4: warning: The left operand of '<<' is a garbage value
                            dbg_buf(elandev->last_read, transfer->actual_length);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libfprint/drivers/elan.c:50:41: note: expanded from macro 'dbg_buf'
        fp_dbg("%04x... (%d bytes)", buf[0] << 8 | buf[1], len)
                                     ~~~~~~ ^
    69fe7a1b
Name
Last commit
Last update
..
aes1610.c Loading commit data...
aes1660.c Loading commit data...
aes1660.h Loading commit data...
aes2501.c Loading commit data...
aes2501.h Loading commit data...
aes2550.c Loading commit data...
aes2550.h Loading commit data...
aes2660.c Loading commit data...
aes2660.h Loading commit data...
aes3500.c Loading commit data...
aes3k.c Loading commit data...
aes3k.h Loading commit data...
aes4000.c Loading commit data...
aeslib.c Loading commit data...
aeslib.h Loading commit data...
aesx660.c Loading commit data...
aesx660.h Loading commit data...
driver_ids.h Loading commit data...
elan.c Loading commit data...
elan.h Loading commit data...
etes603.c Loading commit data...
fdu2000.c Loading commit data...
upek_proto.c Loading commit data...
upek_proto.h Loading commit data...
upeksonly.c Loading commit data...
upeksonly.h Loading commit data...
upektc.c Loading commit data...
upektc.h Loading commit data...
upektc_img.c Loading commit data...
upektc_img.h Loading commit data...
upekts.c Loading commit data...
uru4000.c Loading commit data...
vcom5s.c Loading commit data...
vfs0050.c Loading commit data...
vfs0050.h Loading commit data...
vfs101.c Loading commit data...
vfs301.c Loading commit data...
vfs301_proto.c Loading commit data...
vfs301_proto.h Loading commit data...
vfs301_proto_fragments.h Loading commit data...
vfs5011.c Loading commit data...
vfs5011_proto.h Loading commit data...