浏览代码

imagerylib: avoid the compiler warning (discards 'const' qualifier) by explicit const cast

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57232 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 11 年之前
父节点
当前提交
a6c86f7b56
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/imagery/iclass_statistics.c

+ 2 - 2
lib/imagery/iclass_statistics.c

@@ -111,8 +111,8 @@ void I_iclass_free_statistics(IClass_statistics * statistics)
 
     G_debug(4, "free_statistics()");
 
-    G_free(statistics->name);
-    G_free(statistics->color);
+    G_free((char *) statistics->name);
+    G_free((char *) statistics->color);
     G_free(statistics->band_min);
     G_free(statistics->band_max);
     G_free(statistics->band_sum);