arduino-libraries / SD

SD Library for Arduino

Home Page:http://arduino.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pathidx may not be initialized

Coopski101 opened this issue · comments

D:\Program Files\Arduino\libraries\SD\src\SD.cpp: In function 'open.constprop':
D:\Program Files\Arduino\libraries\SD\src\SD.cpp:462:14: warning: 'pathidx' may be used uninitialized in this function [-Wmaybe-uninitialized]
filepath += pathidx;
^
D:\Program Files\Arduino\libraries\SD\src\SD.cpp:456:9: note: 'pathidx' was declared here
int pathidx;
^

This compiler warning no matter what I compile utilizing the library, even examples. I acknowledge a past issue submitted, but it appears to have not been fixed? Or is this an issue on my end?
Thanks

I acknowledge a past issue submitted

Is this the one you're referring to?: #48

I acknowledge a past issue submitted

Is this the one you're referring to?: #48

yes