[mapcode] 02/18: Fixed 1.40 warnings

Stefan Fritsch sf at moszumanska.debian.org
Wed Nov 2 23:27:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to annotated tag v1.40
in repository mapcode.

commit 22cef2d742c6976b74b28cdc56f2696d45bdc9ea
Author: Rijn Buve <rijn at buve.nl>
Date:   Wed Sep 17 11:06:16 2014 +0200

    Fixed 1.40 warnings
---
 example/mapcode.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/example/mapcode.cpp b/example/mapcode.cpp
index d8f8cb9..7b3457b 100644
--- a/example/mapcode.cpp
+++ b/example/mapcode.cpp
@@ -99,9 +99,9 @@ static void usage(const char* appName) {
     printf("       and the (x, y, z) coordinates are placed on a sphere with radius 1.\n");
     printf("       The (x, y, z) coordinates are primarily meant for visualization of the data set.\n");
     printf("\n");
-    printf("\n     Notes on the use of stdout and stderr:\n");
-    printf("\n     stdout: used for outputting 3D point data; stderr: used for statistics.");
-    printf("\n     You can redirect stdout to a destination file, while stderr will show progress.\n");
+    printf("       Notes on the use of stdout and stderr:\n");
+    printf("       stdout: used for outputting 3D point data; stderr: used for statistics.");
+    printf("       You can redirect stdout to a destination file, while stderr will show progress.\n");
     printf("\n");
     printf("       The result code is 0 when no error occurred, 1 if an input error occurred and 2\n");
     printf("       if an internal error occurred.\n");
@@ -585,7 +585,7 @@ int main(const int argc, const char** argv)
 
         int gridX = 0;
         int gridY = 0;
-        int line = my_round(sqrt(totalNrOfPoints));
+        int line = my_round(sqrt((double)totalNrOfPoints));
         for (int i = 0; i < totalNrOfPoints; ++i) {
             double lat;
             double lon;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git



More information about the Pkg-grass-devel mailing list