mikalhart / Flash

An Arduino library for smoother, easier access to Flash data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling Basic Example emits warnings

sk8nfool opened this issue · comments

I downloaded Flash-5.tar.gz and installed it in the Arduino libraries folder (C:\Users...me...\Documents\Arduino\libraries on my machine).
I then started Arduino and opened the Flash Basic example and compiled it for a Adafruit Trinket Pro (an avr board). I got several "comparison between signed and unsigned" warnings which I fixed (changed "for (int i...." to "for (size_t i....").

I also got two "dereferencing type-punned pointer will break strict-aliasing rules ..." warnings which I don't know how to fix.

I ran the result and it seemed to work.

I am using Arduino 1.8.5