Browse Source

Fix warnings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44247 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 14 years ago
parent
commit
f6c40d2c95
3 changed files with 15 additions and 15 deletions
  1. 2 2
      imagery/i.atcorr/common.cpp
  2. 1 1
      lib/pngdriver/read_png.c
  3. 12 12
      raster/r.uslek/prct2tex.c

+ 2 - 2
imagery/i.atcorr/common.cpp

@@ -8,7 +8,7 @@ Sixs_trunc sixs_trunc; /* initialized in discom global routine */
 
 Sixs_disc sixs_disc = 
 {
-    {0}, {0}, {0}, {0}, {0}, {0}, 
+    {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, 
     { .4f, .488f, .515f, .55f, .633f, .694f, .86f, 1.536f, 2.25f, 3.75f },/* wldis */
     {0},
     {0}
@@ -16,7 +16,7 @@ Sixs_disc sixs_disc =
 
 Sixs_sos sixs_sos = 
 {
-    {0},
+    {{0}},
     {
 	-1.f, -.9996f, -.9976f, -.9942f, -.9893f, -.9828f,
 	-.9749f, -.9655f, -.9546f, -.9422f, -.9285f, -.9133f, -.8967f,

+ 1 - 1
lib/pngdriver/read_png.c

@@ -47,7 +47,7 @@ void read_png(void)
     if (i_width != png.width || i_height != png.height)
 	G_fatal_error
 	    ("PNG: input file has incorrect dimensions: expected: %dx%d got: %lux%lu",
-	     png.width, png.height, i_width, i_height);
+	     png.width, png.height, (unsigned long) i_width, (unsigned long) i_height);
 
     if (png.true_color) {
 	if (color_type != PNG_COLOR_TYPE_RGB_ALPHA)

+ 12 - 12
raster/r.uslek/prct2tex.c

@@ -110,29 +110,29 @@ int prct2tex(double sand_input, double clay_input, double silt_input)
     /*G_message("in prct2tex()"); */
     /*setup the 3Dvectors and initialize them */
     /* index 0 */
-    struct vector cls_clay[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_clay[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 1 */
-    struct vector cls_sandy_clay[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_sandy_clay[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 2 */
-    struct vector cls_silty_clay[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_silty_clay[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 3 */
-    struct vector cls_sandy_clay_loam[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_sandy_clay_loam[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 4 */
-    struct vector cls_clay_loam[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_clay_loam[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 5 */
-    struct vector cls_silty_clay_loam[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_silty_clay_loam[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 6 */
-    struct vector cls_sand[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_sand[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 7 */
-    struct vector cls_loamy_sand[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_loamy_sand[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 8 */
-    struct vector cls_sandy_loam[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_sandy_loam[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 9 */
-    struct vector cls_loam[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_loam[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 10 */
-    struct vector cls_silt_loam[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_silt_loam[POLYGON_DIMENSION] = { { 0.0 } };
     /* index 11 */
-    struct vector cls_silt[POLYGON_DIMENSION] = { 0.0 };
+    struct vector cls_silt[POLYGON_DIMENSION] = { { 0.0 } };
 
     if ((sand_input + clay_input + silt_input) <= 10.0) {
 	sand_input = sand_input * 100.0;