intel / synce4l

GNU General Public License v2.0
22 stars 11 forks source link

Avoid -Wmaybe-uninitialized warning #13

Closed mlichvar closed 1 year ago

mlichvar commented 1 year ago

This avoids the following false positive from gcc:

config.c:352:28: error: 'df' may be used uninitialized [-Werror=maybe-uninitialized]
  352 |                 dst->val.d = df;
      |                            ^
config.c: In function 'config_read':
config.c:286:16: note: 'df' was declared here
  286 |         double df;
      |                ^
mmichaliINTC commented 1 year ago

Thanks @mlichvar ! I've changed the base to dev and merging.