[vtk-developers] [vtkusers] Compile Bug in VTK 5.6
    Sean McBride 
    sean at rogue-research.com
       
    Thu Jul 29 17:52:39 EDT 2010
    
    
  
On Thu, 29 Jul 2010 15:19:31 -0600, David Gobbi said:
>Quick update.  This afternoon's clang build of VTK is clean on my 10.6
>system.  No compile errors, very few warnings, 100% of tests passed.
For this warning:
vtk_sqlite3.c:46188:3: warning: expression result unused [-Wunused-value]
   expandBlob(pMem);
   ^~~~~~~~~~~~~~~~
#define expandBlob(P) (((P)->flags&MEM_Zero)?vtk_sqlite3VdbeMemExpandBlob
(P):0)
                                                                             ^
casting the 0 to void will silence the warning, like so:
#define expandBlob(P) (((P)->flags&MEM_Zero)?vtk_sqlite3VdbeMemExpandBlob
(P):(void)0)
or perhaps the macro could be transformed into an "if(foo){bar()}" construct.
-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
    
    
More information about the vtk-developers
mailing list