Mercurial > hg > nginx
comparison src/http/ngx_http.h @ 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 | 6b8e5c882e47 |
children | e4cabc48b862 |
comparison
equal
deleted
inserted
replaced
3391:7660f0221cf1 | 3392:d2a4c6aa9b9a |
---|---|
92 | 92 |
93 void ngx_http_empty_handler(ngx_event_t *wev); | 93 void ngx_http_empty_handler(ngx_event_t *wev); |
94 void ngx_http_request_empty_handler(ngx_http_request_t *r); | 94 void ngx_http_request_empty_handler(ngx_http_request_t *r); |
95 | 95 |
96 | 96 |
97 #define ngx_http_ephemeral(r) (ngx_http_ephemeral_t *) (&r->uri_start) | 97 #define ngx_http_ephemeral(r) (void *) (&r->uri_start) |
98 | 98 |
99 | 99 |
100 #define NGX_HTTP_LAST 1 | 100 #define NGX_HTTP_LAST 1 |
101 #define NGX_HTTP_FLUSH 2 | 101 #define NGX_HTTP_FLUSH 2 |
102 | 102 |