[vtkusers] Why does VTK throw so many 'casts away constness' warnings

Sean McBride sean at rogue-research.com
Fri Jan 5 15:42:01 EST 2007


On 2007-01-05 14:38, Kent Williams said:

>There are many, many warnings that come up when compiling VTK that all 
>have the same source -- casting 'const char *' to 'char *'

With which compiler?  The dashboards are pretty free of warnings...

>Some of these problems come from calling third party functions, and VTK 
>doesn't have any say in those 3rd party functions' const correctness.
>Others come from passing string literals into functions taking 'char *' 
>parameters.
>
>In any case, VTK throws hundreds of warnings, which are distracting, and 
>can be obscuring real problems that throw compiler warnings.
>Is there anyone with write permission on the VTK CVS who cares enough to 
>fix this?

Probably the best solution is to fix it yourself, create a bug, and add
your patch to the bug.

-- 
____________________________________________________________
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 vtkusers mailing list