attiny icon indicating copy to clipboard operation
attiny copied to clipboard

Warnings by overwritting of symbol "BIN" in "Print.h"

Open pediRAM opened this issue 9 years ago • 4 comments

I've reported the issue here: https://github.com/arduino/Arduino/issues/4784 Is it possible to rename the "BIN" symbol (in "iotnx4.h" etc.) to something else, so the usage of statements like "Serial.println(value, BIN)" or "lcd.print(value, BIN)" wouldn't output warnings or errors while compiling code for ATtiny X4?

pediRAM avatar Apr 01 '16 11:04 pediRAM

As I said its in the avr-libc. You cannot change this. You can close this issue. :)

NicoHood avatar Apr 01 '16 11:04 NicoHood

Oh! OK! Sorry!

pediRAM avatar Apr 01 '16 11:04 pediRAM

I guess the Arduino core could #undef BIN first to prevent the warning. Anyone care to submit this at https://github.com/arduino/Arduino/ ? It also occurs if you enable warnings in the IDE and select the Arduino Gemma board (which also uses an attiny).

matthijskooijman avatar Jul 03 '16 11:07 matthijskooijman

I've opened a PR some time ago already: https://github.com/arduino/Arduino/pull/4791

NicoHood avatar Jul 03 '16 15:07 NicoHood