• 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
demo Loading commit data...
doc Loading commit data...
examples Loading commit data...
libfprint Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
INSTALL Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...