From 7c78413efaf3000f09568a4b22be2cb585424609 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 Jun 2013 12:58:12 +0000 Subject: [PATCH] -make clear that close return value is ignored intentionally --- doc/examples/responseheaders.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c index ef6b7c45..25cca43e 100644 --- a/doc/examples/responseheaders.c +++ b/doc/examples/responseheaders.c @@ -37,7 +37,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, (0 != fstat (fd, &sbuf)) ) { /* error accessing file */ - if (fd != -1) close (fd); + if (fd != -1) + (void) close (fd); const char *errorstr = "An internal server error has occured!\ ";