Closed GoogleCodeExporter closed 8 years ago
The version of avr-gcc used on Windows and Mac, and many Linux systems (eg,
Ubuntu 10.10) has a known bug where PROGMEM used in C++ within statically
initialized arrays causes a false warning.
Using -pedantic would turn this annoying but harmless warning into a fatal
error. That's a pretty terrible compatibility problem.
Original comment by paul.sto...@gmail.com
on 8 Jan 2012 at 7:56
I agree, I don't think we should enable compiler options that will turn
warnings into errors. Showing the warnings should be sufficient, in my opinion.
Original comment by dmel...@gmail.com
on 9 Jan 2012 at 8:42
That's why you make it optional. Newer gcc versions don't have this problem.
And just because the Arduino sources can't be compiled with more stringent
warning options shoudln't force me to do the same with all my software. Those
warnings are there for a reason.
Original comment by gooc...@top.geek.nz
on 9 Jan 2012 at 8:49
I'm going to leave this as "won't fix" because I don't think we should add an
option specifically to enable this compiler option. Instead, it should be
something that's possible with a more general ability to modify the compiler
arguments, e.g. issue 421.
Original comment by dmel...@gmail.com
on 9 Jan 2012 at 8:55
Sure, #421 would be much better.
Original comment by gooc...@top.geek.nz
on 9 Jan 2012 at 9:01
Original issue reported on code.google.com by
gooc...@top.geek.nz
on 7 Jan 2012 at 3:16