lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.92k stars 549 forks source link

Unknown escape sequence: '\%' #40

Closed TyRoXx closed 10 years ago

TyRoXx commented 10 years ago

When GCC 4.8 compiles a064623 with "-Wall -Wextra -Wshadow -Wconversion -pedantic -std=gnu99" there are many warnings. One of the warnings is about the nonsensical escape sequence \% in a string literal in lwan-response.c.

lpereira commented 10 years ago

The \% is a workaround so that that string literal doesn't break the syntax highlighting in my text editor. I'm not sure what the standard says, but GCC doesn't seem to mind. Maybe a better workaround would be using \x25 instead of \%.