[Tile-serving] [osm2pgsql] Fix warnings when compiling tests, use -Werror with travis (#395)

Paul Norman notifications at github.com
Fri Jul 17 06:54:29 UTC 2015


>      
>      version = BZ2_bzlibVersion();
> +    if (version == 0)
> +      ; // fixes error with -Werror=unused-but-set-variable on g++

It's part of the existing autoconf macros by Hartmut Holzgraefe. Perhaps it needs a function call to check linking? I don't know autotools well enough be sure.

Our bzip2 library is specific to osm2pgsql. I looked for an alternative one that is actively maintained by someone who understands autotools well so we wouldn't have to, but couldn't. I did find an alternative zlib one in the autoconf archive, but couldn't get it working.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/395/files#r34865901
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150716/bdea2599/attachment.html>


More information about the Tile-serving mailing list