Skip to content

Commit

Permalink
silence warning when building with WITH_GOPHER=1 WITH_LIBMAGIC=0
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Apr 24, 2023
1 parent 6196f5e commit d4b8304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gopher.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ static void gopher_type(void *c, Selector *sel, char **mime, Parser *parser) {
const char *tmp = NULL;
#else
static char buffer[2];

(void)c;
#endif

if (sel->path[1] == '0' || sel->path[1] == '+') *parser = parse_plaintext_line;
Expand Down

0 comments on commit d4b8304

Please sign in to comment.