rxi / sandbird

A tiny embeddable HTTP server written in C89
MIT License
172 stars 26 forks source link

Warning when compiling #5

Open macabeus opened 4 years ago

macabeus commented 4 years ago

Despite it's work fine, I'm receiving this warning when I'm compiling this code:

In file included from /Users/macabeus/ApenasMeu/switch-folklore/sysmodule/source/sandbird.c:38:
/Users/macabeus/ApenasMeu/switch-folklore/sysmodule/source/sandbird.c: In function 'sb_buffer_vwritef':
/Users/macabeus/ApenasMeu/switch-folklore/sysmodule/source/sandbird.c:326:28: warning: array subscript has type 'char' [-Wchar-subscripts]
  326 |           while ( !isalpha(*fmt) && *fmt != '%' ) *s++ = *fmt++;
      |                            ^~~~

How to fix that?

omgnobody121 commented 3 years ago

I am getting tons of unresolved external errors

Leomjson commented 2 years ago

@omgnobody121: I am getting tons of unresolved external errors

Hi @omgnobody121! Unresolved external errors could occur when you LINK sand bird to your solution/project incorrectly.