I get the following error with the following code. I tried to find out where the problem is on Google, but I did not find anything useful.
Compiling /home/tectu/projects/resources/chibios/ext/lcd/touchpad.c In file included from /home/tectu/projects/resources/chibios/ext/lcd/touchpad.c:1:0: /home/tectu/projects/resources/chibios/ext/lcd/touchpad.h:17:1: warning: useless type qualifier in empty declaration [enabled by default]
Here's the code from line 12 to line 17 from touchpad.h :
volatile struct cal { float xm; float ym; float xn; float yn; };
And here is how I use this structure inside touchpad.c :
static struct cal cal = { 1, 1, 0, 0 };
Can someone show me the light ?: D
source share