Skip to content

Commit 5cb9d09

Browse files
committed
fixed compilation warnings with gcc 4.6.0.
1 parent d803574 commit 5cb9d09

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

src/ngx_postgres_processor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,8 @@ ngx_int_t
116116
ngx_postgres_upstream_connect(ngx_http_request_t *r, ngx_connection_t *pgxc,
117117
ngx_postgres_upstream_peer_data_t *pgdt)
118118
{
119-
ngx_http_upstream_t *u;
120119
PostgresPollingStatusType pgrc;
121120

122-
u = r->upstream;
123-
124121
pgrc = PQconnectPoll(pgdt->pgconn);
125122

126123
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pgxc->log, 0,

valgrind.suppress

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
{
2+
<insert_a_suppression_name_here>
3+
Memcheck:Param
4+
epoll_ctl(event)
5+
fun:epoll_ctl
6+
fun:ngx_epoll_add_event
7+
}
8+
{
9+
<insert_a_suppression_name_here>
10+
Memcheck:Leak
11+
fun:malloc
12+
fun:ngx_alloc
13+
fun:ngx_event_process_init
14+
fun:ngx_single_process_cycle
15+
fun:(below main)
16+
}
117
{
218
<insert_a_suppression_name_here>
319
Memcheck:Leak

0 commit comments

Comments
 (0)