HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
esp_idf_pedantic_compat.hpp File Reference

Compatibility include wrapper for ESP-IDF headers when building with -Wpedantic in C++. More...

#include "esp_now.h"
#include "esp_wifi.h"
Include dependency graph for esp_idf_pedantic_compat.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Compatibility include wrapper for ESP-IDF headers when building with -Wpedantic in C++.

ESP-IDF is primarily a C codebase and some of its public headers legitimately use C extensions such as:

  • zero-length arrays (uint8_t payload[0])
  • flexible array members (uint8_t ssi[])

When those headers are included from C++ translation units with -Wpedantic, GCC emits warnings like:

  • "ISO C++ forbids zero-size array"
  • "ISO C++ forbids flexible array member"

Those warnings are not actionable from the application side without patching ESP-IDF. This wrapper locally suppresses -Wpedantic while including the affected headers, allowing us to keep -Wpedantic enabled for our code.