[GRASS-user] Warnings installing some r.stream addons

César Augusto Ramírez Franco caesarivs at gmail.com
Mon Feb 1 08:33:07 PST 2016


Hello dear list

I'm trying to install all the r.stream addons, but some of them are
printing warnings, I'm using grass 7.0.3 from the ubuntugis PPA in Ubuntu
14.04.3

The output is:

Fetching <r.stream.segment> from GRASS-Addons SVN repository (be
patient)...
Compiling...
stream_vector.c: In function ‘create_sector_vector’:
stream_vector.c:44:9: warning: ‘c’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
       c = NC(d);
         ^
stream_vector.c:43:9: warning: ‘r’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
       r = NR(d);
         ^
stream_vector.c: In function ‘create_segment_vector’:
stream_vector.c:256:5: warning: ‘c’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
   c = NC(d);
     ^
stream_vector.c:255:5: warning: ‘r’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
   r = NR(d);
     ^
Installing...
Updating addons metadata file...
Installation of <r.stream.segment> successfully finished
------------------------------------------------------------
Fetching <r.stream.slope> from GRASS-Addons SVN repository (be patient)...
Compiling...
main.c: In function ‘main’:
main.c:201:23: warning: ‘out_min_curv_buf’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
   out_min_curv_buf[c] = calculate_min_curvature(cur_row, c);
                       ^
main.c:264:12: warning: ‘out_min_curv_fd’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  Rast_close(out_min_curv_fd);
            ^
main.c:199:23: warning: ‘out_max_curv_buf’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
   out_max_curv_buf[c] = calculate_max_curvature(cur_row, c);
                       ^
main.c:256:12: warning: ‘out_max_curv_fd’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  Rast_close(out_max_curv_fd);
            ^
main.c:197:23: warning: ‘out_gradient_buf’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
   out_gradient_buf[c] = calculate_gradient(cur_row, c);
                       ^
main.c:248:12: warning: ‘out_gradient_fd’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  Rast_close(out_gradient_fd);
            ^
main.c:195:25: warning: ‘out_difference_buf’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
   out_difference_buf[c] = calculate_difference(cur_row, c);
                         ^
main.c:240:12: warning: ‘out_difference_fd’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
  Rast_close(out_difference_fd);
            ^
Installing...
Updating addons metadata file...
Installation of <r.stream.slope> successfully finished
------------------------------------------------------------
Fetching <r.hydrodem> from GRASS-Addons SVN repository (be patient)...
Compiling...
hydro_con.c: In function ‘hydro_con’:
hydro_con.c:340:9: warning: variable ‘carve_to_edge’ set but not used
[-Wunused-but-set-variable]
     int carve_to_edge, skipme;
         ^
Installing...
Updating addons metadata file...
Installation of <r.hydrodem> successfully finished

Should this warnings be ignored? Or should they be taken into account in
some way when using them?

Thanks in advance

-- 
*César Augusto Ramírez Franco*
Laboratorio de Sistemas Complejos Naturales
Escuela de Geociencias - Facultad de Ciencias
Universidad Nacional de Colombia - Sede Medellín
Teléfono: (57-4) 430 9369 - 300 459 6085
http://labscn-unalmed.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160201/72a0de90/attachment.html>


More information about the grass-user mailing list