]> sigrok.org Git - libsigrok.git/commit
sr_analog_to_float(): Fix a compiler warning (-Wshadow).
authorUwe Hermann <redacted>
Wed, 16 May 2018 20:46:34 +0000 (22:46 +0200)
committerUwe Hermann <redacted>
Wed, 16 May 2018 20:48:35 +0000 (22:48 +0200)
commit741bcf503dbfa6c282c17ad1898bcbc74cf63dc6
treec2f76dd96e0dc4b11c8a868e623ecdf4a4d3d393
parent53ea24610e5eb0750f98ed7fccccba4de0b4b5ba
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;
        ^~~~~~
src/analog.c