From d0d575bcd5201eab1aacdf682f6fc11d1f46c682 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 20 Nov 2008 17:23:08 +0000 Subject: r2303 merge: compatibility with glibc 2.3, warn_unused_result attribute for write() --- src/core/ngx_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_log.c') diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 1059acf43..e3abcd780 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -158,7 +158,7 @@ ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, ngx_linefeed(p); - ngx_write_fd(log->file->fd, errstr, p - errstr); + (void) ngx_write_fd(log->file->fd, errstr, p - errstr); } -- cgit