sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
463 stars 180 forks source link

Arduino IDE Warnings #256

Open delahere opened 5 years ago

delahere commented 5 years ago

Not sure why newer versions of the Arduino IDE are issuing warnings related to the BLE Peripheral library. I posted the details on the Arduino programming forum here: https://forum.arduino.cc/index.php?topic=588532.0, but no response so far. Here are the first two warnings, generated using v1.88: /Users/mark/Documents/Arduino/libraries/BLEPeripheral/src/utility/hal_aci_tl.h:71:16: warning: type 'struct aci_pins_t' violates one definition rule [-Wodr] typedef struct aci_pins_t

           ^

/Users/mark/Documents/Arduino/libraries/BLEPeripheral/src/utility/hal_aci_tl.h:71:16: note: a different type is defined in another translation unit typedef struct aci_pins_t

           ^

The same code compiles cleanly on version 1.6.12. Warnings are set to 'None' on both IDE's. Here's the code (.txt added in order to include in post):

ble-smart-switch.ino.txt