diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-12-21 21:56:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-12-21 21:56:48 +0000 |
commit | a9d26d2e19c9abb6345dc24d7f59694356e76c58 (patch) | |
tree | eb4eb0adb86f49c3198a2541486bf19028b99ff4 /src | |
parent | 84ab98f31df7cc1911da8e2eff62ecaf922273d0 (diff) | |
download | nginx-a9d26d2e19c9abb6345dc24d7f59694356e76c58.tar.gz nginx-a9d26d2e19c9abb6345dc24d7f59694356e76c58.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index b717c8032..bb19daf83 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -94,7 +94,7 @@ void ngx_http_empty_handler(ngx_event_t *wev); 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 |