Error: 'Adafruit_PN532::_miso' will be initialized after [-Werror=reorder]

I’ve seen that you have opened an issue in the library’s GitHub. That’s a good long-term thing.

In the short run, you can fix the library yourself by changing line 202 in Adafruit_PN532.h to:

  uint8_t _clk, _miso, _mosi, _ss;

It seems that PlatformIO is running with stricter compile-time checks than other environments (e.g. ESP8266 or Arduino IDE).