In file included from C:/Users/pasca/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:41,
from .pio/libdeps/wokwi/RFID_MFRC522v2/src/MFRC522v2.h:18,
from .pio/libdeps/wokwi/RFID_MFRC522v2/src/MFRC522v2.cpp:2:
C:/Users/pasca/.platformio/packages/framework-arduinoespressif32/cores/esp32/binary.h:28: warning: "DEPRECATED" redefined
28 | #define DEPRECATED(x) [[deprecated("use " #x " instead")]]
|
In file included from .pio/libdeps/wokwi/RFID_MFRC522v2/src/MFRC522v2.h:13: .pio/libdeps/wokwi/RFID_MFRC522v2/src/deprecated.h:12: note: this is the location of the previous definition
12 | #define DEPRECATED [[deprecated]]
|
To avoid collision with esp32 / binary.h file DEPRECATED and compiler warnings I suggest adding a prefix MRFC_ to the define in this project.
See : https://github.com/espressif/arduino-esp32/blob/c16a325439fe5a8a3160701d9601634155bb1443/cores/esp32/binary.h#L28
Example warning with GCC 12: