I get the following error with gcc when I declare a struct netif * from a function scope (where the compile doesn’t complain) to global scope:
src/main.c:114:3: warning: passing argument 1 of 'low_level_init' from incompatible pointer type [enabled by default]
src/main.c:62:13: note: expected 'struct netif *' but argument is of type 'struct netif *'
Why is does compiler give the following “non-sensical” complaint?
expected 'stuct netif *' but argument is of type 'struct netif *'
This “full program”
generates this output from
gcc 10398683.c(gcc version 4.6.3), so with all default optionsNote the last warning (really a note) 🙂