Skip to content

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

@domiq44

Description

@domiq44

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions