Closed fmatray closed 4 years ago
long story short: this has to do with static allocating objects on flash and virtual tables. C++ won't support this so i did this shadow allocation on flash and complicated cast to have part of the object on flash... not a good idea, but it was the best I knew some year ago. I'm removing the warning now by using an union, it seems to work but will require some more testing. Not doing so on AM5, and still gaining flexibility because we have no longer to opt by flash or ram allocation and still can mix them.
Sounds great if you have a solution. I have 25 remaining warnings during compilation with the menu and all are related to this.
Is you need some more testing, I can on a mkr 1010 and LCD1602.
I'm hitting them, some about char to const char and some about using string literal... almost done (I hope)
done, also done an extensive review on the examples. hope i'm not creating new bugs with this, please report any issue thanks
I test this morning with your commits. I have no more warning and the menu works on a MKR 1010. I'll report if I find any strange behavior or bug.
Thanks a lot.
Hello, During compilation, I get 23 Warnings:
example with this line in macros.h:280 :
I try to find why this happen but I have no clue.