]> sigrok.org Git - libsigrok.git/commit
libsigrok.h: Fix multiple compiler warnings (-Wshift-overflow=2).
authorUwe Hermann <redacted>
Wed, 16 May 2018 21:20:40 +0000 (23:20 +0200)
committerUwe Hermann <redacted>
Wed, 16 May 2018 21:57:58 +0000 (23:57 +0200)
commit3601d50e2643f4e871ef03c2f507f43a436ea81c
tree872fe3753fdc8ad53eb6ee28b09a16f7bf28612f
parent0519db864bcf445ba22c9be632ac4f58bed67044
libsigrok.h: Fix multiple compiler warnings (-Wshift-overflow=2).

  ../include/libsigrok/libsigrok.h:653:19: warning: result of β€˜1 << 31’ requires 33 bits to represent, but β€˜int’ only has 32 bits [-Wshift-overflow=]
    SR_CONF_GET = (1 << 31),
                     ^~

[...]
include/libsigrok/libsigrok.h