fix(px4_mtd): forward-declare the NuttX structs used in prototypes

px4_at24c_initialize() takes a struct i2c_master_s pointer. Without a
declaration in scope the struct is local to the prototype, which is an
error with -Werror on a target that does not include the NuttX I2C
headers before px4_mtd.h.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
This commit is contained in:
Afonso Oliveira authored and Julian Oes committed 2026-10-23 22:42:28 +02:00
1 parent 9e2711ae1a
commit aa1724fa0c
1 file changed
+3
@@ -34,6 +34,9 @@
#include <stdbool.h>
#include <stdint.h>
struct i2c_master_s;
struct mtd_dev_s;
__BEGIN_DECLS
#define MAX_MTD_INSTANCES 5u