Mercurial > hg > nginx-quic
changeset 3392:d2a4c6aa9b9a
fix building by gcc 4.x with -O2/3/s in some Linux distributions:
dereferencing type-punned pointer will break strict-aliasing rules
the bug has been introduced in r3065
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 21 Dec 2009 21:56:48 +0000 |
parents | 7660f0221cf1 |
children | fbf6d83ce288 |
files | src/http/ngx_http.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -94,7 +94,7 @@ void ngx_http_empty_handler(ngx_event_t void ngx_http_request_empty_handler(ngx_http_request_t *r); -#define ngx_http_ephemeral(r) (ngx_http_ephemeral_t *) (&r->uri_start) +#define ngx_http_ephemeral(r) (void *) (&r->uri_start) #define NGX_HTTP_LAST 1