[vtk-developers] unused yyinput() warning

Will Schroeder will.schroeder at kitware.com
Fri Sep 2 07:06:52 EDT 2011


Tom Citriniti wrote the VRML Importer long ago and did use lex. If you need
to contact him I can put you in touch, he now works at GE Research.
W

On Thu, Sep 1, 2011 at 6:38 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Yeah, the yyinput() function is only present in lex-generated source
> files.  The VRMLImporter must have been generated by lex a long,
> long time ago (more than 10 years ago) -- VTK does not seem to
> include the original ".l" file that it must have been generated from.
> If it doesn't use the yyinput() function, it should be safe to remove
> the whole input()/yyinput() definition from the code.
>
>  - David
>
>
> On Thu, Sep 1, 2011 at 4:02 PM, Sean McBride <sean at rogue-research.com>
> wrote:
> > Hi all,
> >
> > clang warns:
> >
> > VTK/Hybrid/vtkVRMLImporter.cxx:5105:12: warning: function 'yyinput' is
> not needed and will not be emitted
> >      [-Wunneeded-internal-declaration]
> > static int yyinput()
> >           ^
> >
> > I grepped all of VTK for 'yyinput' and was surprised to find it in 3
> files.  Their implementations are similar.
> >
> > These files kinda look like they were auto-created by some tool.  Anyone
> know what this yy stuff is, and if I can safely remove parts that are indeed
> unused?
> >
> > Cheers,
> >
> > --
> > ____________________________________________________________
> > Sean McBride, B. Eng                 sean at rogue-research.com
> > Rogue Research                        www.rogue-research.com
> > Mac Software Developer              Montréal, Québec, Canada
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>


-- 
William J. Schroeder, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com
http://www.kitware.com
(518) 881-4902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110902/8bfbe3b5/attachment.html>


More information about the vtk-developers mailing list