Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed compilation warnings with gcc 4.6.0.

  • Loading branch information...
commit 5cb9d096529e6564024ee3fde6b0fe27fb8f036a 1 parent d803574
@agentzh agentzh authored
Showing with 16 additions and 3 deletions.
  1. +0 −3  src/ngx_postgres_processor.c
  2. +16 −0 valgrind.suppress
View
3  src/ngx_postgres_processor.c
@@ -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
16 valgrind.suppress
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.