RasPiArduino
RasPiArduino copied to clipboard
Compiler warnings needs tuned from defaults
When we compile Sketches for the Pi using the current build system, we end up with failures when importing some libraries and sketches. It appears that the compiler warning levels need tuned for compatibility with what is the "norm" in a real Arduino environment. This issue will capture, log, discuss and address these considerations.
-Wstrict-aliasing
When compiling the Adafruit GFX library we ran foul of this entry. A quick check shows that this is related to the optimization level. We are currently using -O3. I suggest we switch off optimization.
-Wint-to-pointer-cast
It appears that we can disable this warning with -Wno-int-to-pointer-cast.
-Wunused-variable
This may be only a warning and can be left in.
-Wint-to-pointer-cast << what did you compile to get this?