Hi Alan
I'm attacking my to do list. Do you still get these warnings? I just
looked and the line 1309 no longer makes sense in terms of a reference
to cmd so I guess the code has changed since then. I don't get any
unallocated variable warnings for plbuf in VC++ so perhaps someone
else fixed this issue.

Phil

On 12 March 2015 at 20:14, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote:
> To Phil:
>
> gcc is generating these warnings when building libplplot.  Would you
> please take a look to see whether this is either a real uninitialized issue
> that needs to be fixed or a false alarm?
>
> /home/software/plplot/HEAD/plplot.git/src/plmetafile.c: In function
> ‘read_header’:
> /home/software/plplot/HEAD/plplot.git/src/plmetafile.c:336:8: warning:
> ‘pdf_rc’ may be used uninitialized in this function [-Wuninitialized]
> /home/software/plplot/HEAD/plplot.git/src/plmetafile.c:301:9: note: ‘pdf_rc’
> was declared here
> /home/software/plplot/HEAD/plplot.git/src/plmetafile.c: In function
> ‘plreadmetafile’:
> /home/software/plplot/HEAD/plplot.git/src/plmetafile.c:373:23: warning:
> ‘plm’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> /home/software/plplot/HEAD/plplot.git/src/plmetafile.c:1112:14: note: ‘plm’
> was declared here
> [....]
> /home/software/plplot/HEAD/plplot.git/src/plbuf.c: In function ‘rdbuf_bop’:
> /home/software/plplot/HEAD/plplot.git/src/plbuf.c:1309:11: warning: ‘cmd’
> may be used uninitialized in this function [-Wmaybe-uninitialized]
> /home/software/plplot/HEAD/plplot.git/src/plbuf.c:593:19: note: ‘cmd’ was
> declared here
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state
> implementation for stellar interiors (freeeos.sf.net); the Time
> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
> software package (plplot.sf.net); the libLASi project
> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
> and the Linux Brochure Project (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to