[Tile-serving] [osm2pgsql] fix Clang warnings about wrong format specifiers (#486)
Rolf Eike Beer
notifications at github.com
Fri Oct 30 09:15:52 UTC 2015
Use the proper format macros from inttypes.h instead.
Fixes these warnings:
/Users/travis/build/DerDakon/osm2pgsql/node-ram-cache.cpp:372:91: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
fprintf( stderr, "Node-cache: cache=%ldMB, maxblocks=%d*%zd, allocation method=%i\n", (cacheSize >> 20), maxBlocks, PER_BLOCK*sizeof(ramNode), allocStrategy );
~~~ ^~~~~~~~~~~~~~~~~
%lld
/Users/travis/build/DerDakon/osm2pgsql/node-ram-cache.cpp:379:24: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
usedBlocks, sizeSparseTuples,
^~~~~~~~~~~~~~~~
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/486
-- Commit Summary --
* fix Clang warnings about wrong format specifiers
-- File Changes --
M node-ram-cache.cpp (6)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/486.patch
https://github.com/openstreetmap/osm2pgsql/pull/486.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/486
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151030/b77a24ac/attachment.html>
More information about the Tile-serving
mailing list