forked from me-no-dev/AsyncTCP
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation warnings when using LTO
Rename structures to avoid compilation warning when using LTO compilation flags: ``` build_flags = -flto=auto build_unflags = -fno-lto ``` Warnings are caused by a conflict with structure names in AsyncUDP: ``` /Users/mat/.platformio/packages/framework-arduinoespressif32-src-77c8e93767360b28deee4aedf5d0a1ab/libraries/AsyncUDP/src/AsyncUDP.cpp:161:3: warning: type 'struct lwip_event_packet_t' violates the C++ One Definition Rule [-Wodr] 161 | } lwip_event_packet_t; | ^ .pio/libdeps/oss-esp32/AsyncTCP/src/AsyncTCP.cpp:121:3: note: a different type is defined in another translation unit 121 | } lwip_event_packet_t; | ^ /Users/mat/.platformio/packages/framework-arduinoespressif32-src-77c8e93767360b28deee4aedf5d0a1ab/libraries/AsyncUDP/src/AsyncUDP.cpp:155:9: note: the first difference of corresponding definitions is field 'arg' 155 | void *arg; | ^ .pio/libdeps/oss-esp32/AsyncTCP/src/AsyncTCP.cpp:87:18: note: a field with different name is defined in another translation unit 87 | lwip_event_t event; | ^ ```
- Loading branch information
1 parent
3838c22
commit e285ff6
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters