kevinelong / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 0 forks source link

main.c:932:17: warning: 'ymax' may be used uninitialized in this function #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using gcc 4.7 on Fedora 17 gives the following warning:

main.c:932:17: warning: 'ymax' may be used uninitialized in this function 
[-Wmaybe-uninitialized]
main.c:846:34: note: 'ymax' was declared here

I'm not sure if initializing to 0 would be correct?

Original issue reported on code.google.com by damian.s...@gmail.com on 21 Jul 2012 at 2:39

GoogleCodeExporter commented 8 years ago
Looks like a bug if an msc contained only parallel arcs.
Setting to zero - like yskipmax - is the correct fix, coming up.

Thanks again!

Mike

Original comment by Michael....@gmail.com on 21 Jul 2012 at 5:16

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r196.

Original comment by Michael....@gmail.com on 21 Jul 2012 at 5:22