[GRASS-dev] [GRASS GIS] #1765: variable length array error in r.terraflow with clang

GRASS GIS trac at osgeo.org
Tue Dec 18 05:23:51 PST 2012


#1765: variable length array error in r.terraflow with clang
------------------------+---------------------------------------------------
  Reporter:  kyngchaos  |       Owner:  grass-dev@…              
      Type:  defect     |      Status:  closed                   
  Priority:  normal     |   Milestone:  6.4.3                    
 Component:  Compiling  |     Version:  svn-develbranch6         
Resolution:  fixed      |    Keywords:  clang                    
  Platform:  MacOSX     |         Cpu:  OSX/Intel                
------------------------+---------------------------------------------------

Comment(by glynn):

 Replying to [comment:6 neteler]:
 > Also backported to 6.4 and 6.5. Closing.
 FWIW, I fixed a couple of other portability issues in r54330. Two more
 VLAs, string literals are "const char *", and "%lf" isn't a valid printf()
 specifier.
 Issues which weren't fixed include:
  * Extraneous commas at the end of enum definitions and extraneous
 semicolons after function definitions (these are trivial, and would add a
 lot of noise to the diff)
  * Use of "long long" and "%lld", for which there's no easy fix.
 Add -ansi and -pedantic to CXXFLAGS for the details.

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



More information about the grass-dev mailing list