pico
pico copied to clipboard
It seems that 'reqhdr' is not used in httpd.h !?
Hello,
I have just compiled your code and I see the following :
gcc -I include/ -o src/httpd.o -c src/httpd.c -Wall -pedantic
gcc -I include/ -o src/http_server src/main.c src/httpd.o -Wall -pedantic
In file included from src/main.c:1:
include/httpd.h:25:17: warning: ‘reqhdr’ defined but not used [-Wunused-variable]
25 | static header_t reqhdr[17] = {{"\0", "\0"}};
| ^~~~~~
Is there any mistake in your code ? Thank you.
It's very strange note. reqhdr used in https://github.com/foxweb/pico/blob/master/httpd.c#L120 in 4 lines.