[GRASS-dev] [GRASS GIS] #1173: v.surf.rst: bug in handling Output deviations vector point file

GRASS GIS trac at osgeo.org
Tue Sep 21 12:03:13 EDT 2010


#1173: v.surf.rst: bug in handling Output deviations vector point file
---------------------------------+------------------------------------------
 Reporter:  mmetz                |       Owner:  grass-dev@…              
     Type:  defect               |      Status:  new                      
 Priority:  normal               |   Milestone:  6.4.1                    
Component:  Vector               |     Version:  svn-releasebranch64      
 Keywords:  vector, rst library  |    Platform:  All                      
      Cpu:  All                  |  
---------------------------------+------------------------------------------
 The output deviations vector file name is passed as char* to
 IL_init_params_2d() in the rst library which is a bug:

 {{{
 main.c: In function ‘main’:
 main.c:686: warning: passing argument 41 of ‘IL_init_params_2d’ from
 incompatible pointer type
 /home/markus/src/grass-6.4.svn/dist.i686-pc-linux-
 gnu/include/grass/interpf.h:82: note: expected ‘struct FILE *’ but
 argument is of type ‘char *’
 }}}

 Applies to all branches.

 A possible solution could be to change IL_init_params_2d and make argument
 number 41 a char* because the vector deviation points file has already
 been created by v.surf.rst when IL_init_params_2d is called, so FILE * is
 not an option.

 Markus M

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1173>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list