Skip to content

Commit

Permalink
fixed compilation warnings with gcc 4.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Nov 7, 2011
1 parent d803574 commit 5cb9d09
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ngx_postgres_processor.c
Expand Up @@ -116,11 +116,8 @@ ngx_int_t
ngx_postgres_upstream_connect(ngx_http_request_t *r, ngx_connection_t *pgxc,
ngx_postgres_upstream_peer_data_t *pgdt)
{
ngx_http_upstream_t *u;
PostgresPollingStatusType pgrc;

u = r->upstream;

pgrc = PQconnectPoll(pgdt->pgconn);

ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pgxc->log, 0,
Expand Down
16 changes: 16 additions & 0 deletions valgrind.suppress
@@ -1,3 +1,19 @@
{
<insert_a_suppression_name_here>
Memcheck:Param
epoll_ctl(event)
fun:epoll_ctl
fun:ngx_epoll_add_event
}
{
<insert_a_suppression_name_here>
Memcheck:Leak
fun:malloc
fun:ngx_alloc
fun:ngx_event_process_init
fun:ngx_single_process_cycle
fun:(below main)
}
{
<insert_a_suppression_name_here>
Memcheck:Leak
Expand Down

0 comments on commit 5cb9d09

Please sign in to comment.