On Mon, Sep 14, 2015 at 4:53 PM, Markus Neteler <nete...@osgeo.org> wrote:
>
>
> If the point of using that env var is to simply suppress the warning
> in the upper case, then maybe G_suppress_warnings(1) is better?
> Something like
>
> Index: lib/python/temporal/c_libraries_interface.py
> ===================================================================
> --- lib/python/temporal/c_libraries_interface.py    (revision 66229)
> +++ lib/python/temporal/c_libraries_interface.py    (working copy)
> @@ -294,7 +294,9 @@
>              char_list = ""
>              mapset = mapsets[count]
>
> +            libgis.G_suppress_warnings(1)
>              permission = libgis.G_mapset_permissions(mapset)
> +            libgis.G_suppress_warnings(0)
>              in_search_path = libgis.G_is_mapset_in_search_path(mapset)
>
> I see it used in various raster modules.
> What do you think?

Well, if it is in multiple raster modules then it is a conceptual problem.
Either the modules are doing something wrong or the right API is missing
for that case.

Vaclav
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to