[GRASS-dev] Re: [GRASS GIS] #714: spawn.c differences between 6.4 and 6.5

GRASS GIS trac at osgeo.org
Thu Jan 21 05:28:41 EST 2010


#714: spawn.c differences between 6.4 and 6.5
---------------------------+------------------------------------------------
  Reporter:  neteler       |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect        |      Status:  new                      
  Priority:  normal        |   Milestone:  6.4.1                    
 Component:  default       |     Version:  6.4.0 RCs                
Resolution:                |    Keywords:                           
  Platform:  MSWindows XP  |         Cpu:  Unspecified              
---------------------------+------------------------------------------------
Comment (by glynn):

 Replying to [comment:6 hamish]:

 > is this anything to worry about?
 {{{
 [...]svn/grass65/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-
 unknown-linux-gnu/spawn.o -c spawn.c
 spawn.c: In function 'parse_argvec':
 spawn.c:721: warning: cast from pointer to integer of different size
 }}}

 No. In that context, the pointer is actually an "int" which has been cast
 to a pointer, so casting it back to an "int" is safe.

 If you want to shut the compiler up, you could try changing the definition
 of the NEXT_ARG macro to:
 {{{
 #define NEXT_ARG(var, type) ((type) (ssize_t) *(var)++)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/714#comment:7>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list