When folks use the esp-idf includes (via
embuild::build::CInclArgs::try_from_env("ESP_IDF")) to build c code in
their crates, depending on the warnings they enable for their code, some
warnings might be emitted for code in the esp-idf headers (for example,
unused arguments).
Use the -isystem flag to mark the esp-idf provided header paths as
"system" provided, which suppresses the warnings which would be emitted
from headers included from these paths.
When folks use the esp-idf includes (via
embuild::build::CInclArgs::try_from_env("ESP_IDF")
) to build c code in their crates, depending on the warnings they enable for their code, some warnings might be emitted for code in the esp-idf headers (for example, unused arguments).Use the
-isystem
flag to mark the esp-idf provided header paths as "system" provided, which suppresses the warnings which would be emitted from headers included from these paths.