A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mcci-catena/arduino-lmic/issues/736 below:

Need #if in the code for the halconfig tables · Issue #736 · mcci-catena/arduino-lmic · GitHub

Some versions of GCC emit vtables for objects even if they're not used, even if the platform enables link-time garbage collection.

For example, when configured for an MCCI Catena 4610:

0800e9b8 V vtable for Arduino_LMIC::HalConfiguration_Catena4420_t
0800e9d4 V vtable for Arduino_LMIC::HalConfiguration_Catena4610_t
0800ea28 V vtable for Arduino_LMIC::HalConfiguration_heltec_lora32
0800ea44 V vtable for Arduino_LMIC::HalConfiguration_ttgo_lora32_v1
0800ea0c V vtable for Arduino_LMIC::HalConfiguration_FeatherM0LoRa_t
0800e9f0 V vtable for Arduino_LMIC::HalConfiguration_Feather32U4LoRa_t

The offending entries are never used. Luckily, it's easy to get rid of them, just add #ifdef on the config variables in the .cpp file that provide the begin() methods. A little ugly, but it works.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4