[GRASS-SVN] r60261 - grass/trunk/general/g.mlist

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 16 07:37:27 PDT 2014


Author: hcho
Date: 2014-05-16 07:37:27 -0700 (Fri, 16 May 2014)
New Revision: 60261

Modified:
   grass/trunk/general/g.mlist/main.c
Log:
g.mlist: Suppress "found in more mapsets" warnings. Fix ticket #2255.


Modified: grass/trunk/general/g.mlist/main.c
===================================================================
--- grass/trunk/general/g.mlist/main.c	2014-05-16 12:41:40 UTC (rev 60260)
+++ grass/trunk/general/g.mlist/main.c	2014-05-16 14:37:27 UTC (rev 60261)
@@ -258,7 +258,10 @@
 	G_message(_("%s available in mapset <%s>:"),
 		  elem->text, mapset);
     }
-    
+
+    /* Suppress "... found in more mapsets" warnings from G_find_file2. */
+    G_suppress_warnings(1);
+
     for (i = 0; i < count; i++) {
 	char *name = list[i];
 	int need_mapset = 0;
@@ -284,6 +287,7 @@
 	any++;
     }
 
+    G_suppress_warnings(0);
     fflush(stdout);
     
     G_free(list);



More information about the grass-commit mailing list