FRiCKLE / ngx_postgres

upstream module that allows nginx to communicate directly with PostgreSQL database.
http://labs.frickle.com/nginx_ngx_postgres/
BSD 2-Clause "Simplified" License
545 stars 122 forks source link

ngx_postgres_escape.c:60: warning: pointer targets in assignment differ in signedness #3

Closed sahuguet closed 14 years ago

sahuguet commented 14 years ago

I get the following compilation error when trying to compile nginx.

Configuration = ./configure --add-module=../ngx_postgres-0.5 --add-module=../chaoslawful-drizzle-nginx-module-f0ba8f5 --add-module=../agentzh-rds-json-nginx-module-bb9a578/

Error msg = cc1: warnings being treated as errors ../ngx_postgres-0.5/src/ngx_postgres_escape.c: In function ‘ngx_postgres_escape_string’: ../ngx_postgres-0.5/src/ngx_postgres_escape.c:60: warning: pointer targets in assignment differ in signedness make[1]: * [objs/addon/src/ngx_postgres_escape.o] Error 1 make: * [build] Error 2

OS is %uname -a Darwin sahuguet-macbookpro.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

regards,

Arnaud

agentzh commented 14 years ago

I've just fixed this in the Git HEAD. Could you please try it out?

Thanks! -agentzh

PiotrSikora commented 14 years ago

I'm closing this, because agentzh's fix is obviously correct.