[GRASS-dev] r.viewshed fails on large raster: temp file already exists

Glynn Clements glynn at gclements.plus.com
Tue Feb 4 02:14:23 PST 2014


Markus Neteler wrote:

> One compiler issue remains:
> 
> mkstemp.c: In function 'G_mkstemp_fp':
> mkstemp.c:164:5: warning: suggest parentheses around comparison in
> operand of '&' [-Wparentheses]
>      const char *fmode = (flags & O_ACCMODE == O_RDWR)

Fixed in r58877.

> For testing, I am not sure how to change
> lib/iostream/ami_stream.cpp
> in order to use the new function(s). Suggestions?

  fd = G_mkstemp(tmp_path, O_RDWR, 0600);

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list