mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 18:35:41 +02:00
Fix warning
This commit is contained in:
+6
-7
@@ -64,12 +64,12 @@ bool progress_time() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct stats {
|
struct stats {
|
||||||
int minzoom;
|
int minzoom = 0;
|
||||||
int maxzoom;
|
int maxzoom = 0;
|
||||||
double midlat, midlon;
|
double midlat = 0, midlon = 0;
|
||||||
double minlat, minlon, maxlat, maxlon;
|
double minlat = 0, minlon = 0, maxlat = 0, maxlon = 0;
|
||||||
double minlat2, minlon2, maxlat2, maxlon2;
|
double minlat2 = 0, minlon2 = 0, maxlat2 = 0, maxlon2 = 0;
|
||||||
std::vector<struct strategy> strategies;
|
std::vector<struct strategy> strategies{};
|
||||||
};
|
};
|
||||||
|
|
||||||
void append_tile(std::string message, int z, unsigned x, unsigned y, std::map<std::string, layermap_entry> &layermap, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping, std::set<std::string> &exclude, std::set<std::string> &include, std::set<std::string> &keep_layers, std::set<std::string> &remove_layers, int ifmatched, mvt_tile &outtile, json_object *filter) {
|
void append_tile(std::string message, int z, unsigned x, unsigned y, std::map<std::string, layermap_entry> &layermap, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping, std::set<std::string> &exclude, std::set<std::string> &include, std::set<std::string> &keep_layers, std::set<std::string> &remove_layers, int ifmatched, mvt_tile &outtile, json_object *filter) {
|
||||||
@@ -1473,7 +1473,6 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct stats st;
|
struct stats st;
|
||||||
memset(&st, 0, sizeof(st));
|
|
||||||
st.minzoom = st.minlat = st.minlon = st.minlat2 = st.minlon2 = INT_MAX;
|
st.minzoom = st.minlat = st.minlon = st.minlat2 = st.minlon2 = INT_MAX;
|
||||||
st.maxzoom = st.maxlat = st.maxlon = st.maxlat2 = st.maxlon2 = INT_MIN;
|
st.maxzoom = st.maxlat = st.maxlon = st.maxlat2 = st.maxlon2 = INT_MIN;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user