From: Raúl Marín Rodríguez Date: Mon, 30 Jul 2018 16:29:42 +0000 (+0000) Subject: Use user provided CFLAGS in the address standardizer X-Git-Tag: 2.5.0beta2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4581ec21fed0ee12df552c57b35dc18ace243b2;p=postgis Use user provided CFLAGS in the address standardizer Closes https://github.com/postgis/postgis/pull/280 Closes #4140 git-svn-id: http://svn.osgeo.org/postgis/trunk@16674 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/NEWS b/NEWS index 27eced998..d1dcd958d 100644 --- a/NEWS +++ b/NEWS @@ -8,7 +8,8 @@ New since PostGIS 2.5.0beta1 (Vinícius A.B. Schmidt, Darafei Praliaskouski) - #4109, Fix WKT parser accepting and interpreting numbers numbers with multiple dots (Raúl Marín, Paul Ramsey) - - #4140, Use user-provided CFLAGS in the topology module (Raúl Marín) + - #4140, Use user-provided CFLAGS in address standardizer and the + topology module (Raúl Marín) See PostGIS 2.5.0 section for full details diff --git a/extensions/address_standardizer/Makefile.in b/extensions/address_standardizer/Makefile.in index cbab6a99c..898abb3ac 100644 --- a/extensions/address_standardizer/Makefile.in +++ b/extensions/address_standardizer/Makefile.in @@ -51,7 +51,7 @@ EXTRA_CLEAN += sql/*.sql DOCS = README.address_standardizer -PG_CPPFLAGS = @CPPFLAGS@ -g -O0 +PG_CPPFLAGS = @CFLAGS@ @CPPFLAGS@ SHLIB_LINK = @SHLIB_LINK@ -lpcre EXTRA_CLEAN = usps-st-city-name.txt mk-st-regexp mk-city-regex test_main diff --git a/extensions/address_standardizer/parseaddress-api.c b/extensions/address_standardizer/parseaddress-api.c index d4c7f171c..d5008c3f7 100644 --- a/extensions/address_standardizer/parseaddress-api.c +++ b/extensions/address_standardizer/parseaddress-api.c @@ -57,7 +57,7 @@ const char *get_state_regex(char *st) int clean_trailing_punct(char *s) { - int i; + size_t i; int ret = 0; i=strlen(s)-1; @@ -70,7 +70,7 @@ int clean_trailing_punct(char *s) char *clean_leading_punct(char *s) { - int i; + size_t i; for (i=0; i