[Tile-serving] [osm2pgsql] Fix warnings when compiling tests, use -Werror with travis (#395)
Sarah Hoffmann
notifications at github.com
Thu Jul 16 20:26:36 UTC 2015
> @@ -313,7 +313,7 @@ int pgsql_endCopy(middle_pgsql_t::table_desc *table)
> }
> } // anonymous namespace
>
> -int middle_pgsql_t::local_nodes_set(const osmid_t& id, const double& lat,
> +bool middle_pgsql_t::local_nodes_set(const osmid_t& id, const double& lat,
These changes to bool look wrong. The functions used to return 0 for ok, which now translates to false. Either also change the return statements properly or drop the return value completely if it isn't used anywhere.
This concerns all bool returns in this PR.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/395/files#r34833882
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150716/6bd559d3/attachment.html>
More information about the Tile-serving
mailing list