[vtk-developers] [vtkusers] Compile Bug in VTK 5.6

David Gobbi david.gobbi at gmail.com
Thu Jul 29 19:10:57 EDT 2010


Interesting, I tried to push the "if" fix but I couldn't.  Git says
the following:

----------------------------------------------------------------------
commit 5bb0cc15 creates blob c26da674 at path
  Utilities/vtksqlite/vtk_sqlite3.c
with size 3870 KB, greater than the maximum 1024 KB
----------------------------------------------------------------------

The file is just too darn big.

   David


On Thu, Jul 29, 2010 at 3:52 PM, Sean McBride <sean at rogue-research.com> wrote:
> 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