Hi,

in the process of removing all warnings the Visual C++ compiler put out 
(which turned out to be a good thing, since I could remove some 
(potential) bugs), I also found some problem in plstream.cc where I'm 
not sure what the purpose of the code is/was.

The Visual C++ compiler puts out the following warning:

[ 51%] Building CXX object 
bindings/c++/CMakeFiles/plplotcxxd.dir/plstream.cc.obj
plstream.cc
z:\devzone\pldev\plplot\bindings\c++\plstream.cc(2269) : warning C4717: 
'plstream::xform' : recursive on all control paths, function will cause 
runtime stack overflow

The relevant code part is:

/* Example linear transformation function for contour plotter. */

void  plstream::xform( PLFLT x, PLFLT y, PLFLT * tx, PLFLT * ty )
{
    set_stream();

    xform(x,y,tx,ty);
}

I wasn't able to find any declaration of xform, apart from 
plstream::xform. So this code as Visual C++ warns calls itself 
recursively until there is an stack overflow. I'm quite sure we never 
use this functions anywhere, but we should either remove it, or correct it.

Any proposes what to do?

Regards,
Werner

-- 
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
       +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to