From: Uwe Hermann Date: Wed, 16 May 2018 20:46:34 +0000 (+0200) Subject: sr_analog_to_float(): Fix a compiler warning (-Wshadow). X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=741bcf503dbfa6c282c17ad1898bcbc74cf63dc6;hp=741bcf503dbfa6c282c17ad1898bcbc74cf63dc6;p=libsigrok.git sr_analog_to_float(): Fix a compiler warning (-Wshadow). src/analog.c: In function ‘sr_analog_to_float’: src/analog.c:194:9: warning: declaration of ‘offset’ shadows a previous local [-Wshadow] float offset = analog->encoding->offset.p / (float)analog->encoding->offset.q; ^~~~~~ src/analog.c:177:8: note: shadowed declaration is here float offset; ^~~~~~ ---