From: chanywa Date: Tue, 10 Oct 2017 00:01:27 +0000 (+0900) Subject: fix warning messages X-Git-Tag: accepted/tizen/4.0/unified/20171010.064218^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4774286d497b9932d49676582e825fa35be882dd;p=platform%2Fcore%2Flocation%2Fmaps-plugin-mapzen.git fix warning messages Change-Id: I6931403bd285f157078c940d3bdb3e179cd151cf --- diff --git a/maps-plugin-mapzen.changes b/maps-plugin-mapzen.changes index f1989c3..8109831 100644 --- a/maps-plugin-mapzen.changes +++ b/maps-plugin-mapzen.changes @@ -1,5 +1,20 @@ +[Version] maps-plugin-mapzen_0.0.5 +[Date] 10 Oct 2017 +[Title] fix warning messages +[Developer] Seechan Kim + +[Version] maps-plugin-mapzen_0.0.4 +[Date] 23 Aug 2017 +[Title] add plugin APIs for added Map Service APIs +[Developer] Jongmun Woo + +[Version] maps-plugin-mapzen_0.0.3 +[Date] 18 May 2017 +[Title] add mapzen plugin +[Developer] Jongmun Woo + [Version] maps-plugin-mapzen_0.0.2 -[Date] 08 Feb 2017 +[Date] 08 Feb 2017 [Title] fix call EXPOST_API of other plugin [Developer] Jongmun Woo diff --git a/packaging/maps-plugin-mapzen.spec b/packaging/maps-plugin-mapzen.spec index 24f4d3e..06853ab 100644 --- a/packaging/maps-plugin-mapzen.spec +++ b/packaging/maps-plugin-mapzen.spec @@ -1,6 +1,6 @@ Name: maps-plugin-mapzen Summary: Tizen Mapzen Maps Plug-in Library -Version: 0.0.4 +Version: 0.0.5 Release: 1 Group: Location/Libraries License: Apache-2.0 and MIT diff --git a/src/mapzen/mapzen_route.cpp b/src/mapzen/mapzen_route.cpp index 361a39f..6e73374 100644 --- a/src/mapzen/mapzen_route.cpp +++ b/src/mapzen/mapzen_route.cpp @@ -45,7 +45,7 @@ extern "C" { std::string url_encode(const std::string& unencoded) { char* encoded = curl_escape(unencoded.c_str(), static_cast(unencoded.size())); - MAP_DEBUG("route json after url encoding: " + *encoded); + MAP_DEBUG("route json after url encoding: %s", (encoded ? encoded : "(null)")); std::string encoded_str(encoded); curl_free(encoded); return encoded_str; diff --git a/src/mapzen/tangram_view.cpp b/src/mapzen/tangram_view.cpp index 45b8db5..f5925ff 100644 --- a/src/mapzen/tangram_view.cpp +++ b/src/mapzen/tangram_view.cpp @@ -648,7 +648,7 @@ mapzen_error_e TangramView::updateMarker(maps_view_object_h object, Tangram::Mar int error = MAPS_ERROR_NONE; unsigned char *imgData = nullptr; - const char* styleFormat = "{ style: 'sdk-point-overlay', color: white, size: [%dpx, %dpx], collide: false, anchor: %s, transition: { [show, hide]: { time: 0s } } }"; + const char styleFormat[] = "{ style: 'sdk-point-overlay', color: white, size: [%dpx, %dpx], collide: false, anchor: %s, transition: { [show, hide]: { time: 0s } } }"; static std::string anchor; @@ -733,7 +733,7 @@ mapzen_error_e TangramView::updatePolyline(maps_view_object_h object, Tangram::M unsigned char r = 0, g = 0, b = 0, a = 0; int width = 0; - const char* styleFormat = "{ style: 'ux-route-line-overlay', color: [%d, %d, %d, %d], width: %dpx, order: 500 }"; + const char styleFormat[] = "{ style: 'ux-route-line-overlay', color: [%d, %d, %d, %d], width: %dpx, order: 500 }"; do { error = maps_view_object_polyline_get_color(object, &r, &g, &b, &a); @@ -763,7 +763,7 @@ mapzen_error_e TangramView::updatePolygon(maps_view_object_h object, Tangram::Ma int error = MAPS_ERROR_NONE; Tangram::Coordinates coords = {}; unsigned char r = 0, g = 0, b = 0, a = 0; - const char* styleFormat = "{ style: 'polygons', color: [%d, %d, %d, %d] }"; + const char styleFormat[] = "{ style: 'polygons', color: [%d, %d, %d, %d] }"; do { error = maps_view_object_polygon_get_fill_color(object, &r, &g, &b, &a);