Permalink
Browse files

fixed compilation warnings with gcc 4.6.0.

  • Loading branch information...
1 parent d803574 commit 5cb9d096529e6564024ee3fde6b0fe27fb8f036a @agentzh agentzh committed Nov 7, 2011
Showing with 16 additions and 3 deletions.
  1. +0 −3 src/ngx_postgres_processor.c
  2. +16 −0 valgrind.suppress
@@ -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,
View
@@ -1,5 +1,21 @@
{
<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
fun:malloc
fun:ngx_alloc

0 comments on commit 5cb9d09

Please sign in to comment.