pico icon indicating copy to clipboard operation
pico copied to clipboard

It seems that 'reqhdr' is not used in httpd.h !?

Open domiq44 opened this issue 2 years ago • 1 comments

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.

domiq44 avatar Mar 23 '23 12:03 domiq44

It's very strange note. reqhdr used in https://github.com/foxweb/pico/blob/master/httpd.c#L120 in 4 lines.

foxweb avatar Jan 26 '24 08:01 foxweb