I'm writing a simple web server to handle HTTP 1.1 requests for a class. As such, I've defined some 'stock' strings that I use a lot during the program, eg.
static char* bad_response = // 400, BAD request
"HTTP/1.1 400 Bad Request\n";
static char* bad_req_body = // 400 error
"<html><body>\n<h2>Malformed Request</h2>\n"
"Your browser sent a request I could not understand.\n</body></html>\n";
These strings are defined in the .h file, but only used in the .c file, resulting in the warning "‘bad_response’ defined but not used".
So my question, is there someway to flag these variables so they dont raise that particular warning? Or is proper coding style to just move these variables into the .c file?