mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Clean a few warnings emited by GCC v8
An instance of catching an exception by value: https://blog.knatten.org/2010/04/02/always-catch-exceptions-by-reference/ In jsontool, there's a warning about writing 8 bytes into a 7 byte buffer, potentially truncating or losing the nul-terminator. There are a couple of instances of an unused bool variable, not really a big deal.
This commit is contained in:
+1
-1
@@ -270,7 +270,7 @@ drawvec clean_or_clip_poly(drawvec &geom, int z, int buffer, bool clip) {
|
||||
mapbox::geometry::multi_polygon<long long> result;
|
||||
try {
|
||||
wagyu.execute(mapbox::geometry::wagyu::clip_type_union, result, mapbox::geometry::wagyu::fill_type_positive, mapbox::geometry::wagyu::fill_type_positive);
|
||||
} catch (std::runtime_error e) {
|
||||
} catch (std::runtime_error &e) {
|
||||
FILE *f = fopen("/tmp/wagyu.log", "w");
|
||||
fprintf(f, "%s\n", e.what());
|
||||
fprintf(stderr, "%s\n", e.what());
|
||||
|
||||
Reference in New Issue
Block a user