memeco / osd-lyrics

Automatically exported from code.google.com/p/osd-lyrics
GNU General Public License v3.0
1 stars 0 forks source link

compile error: ‘ret_edge’ may be used uninitialized #249

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

I get source from git

cd osdlyrics
autogen.sh
./configure
make

So met error:

cc1: warnings being treated as errors
ol_scroll_window.c: In function ‘_get_pointer_edge’:
ol_scroll_window.c:584:17: error: ‘ret_edge’ may be used uninitialized in 
this function
make[3]: *** [ol_scroll_window.o] Error 1
make[3]: Leaving directory `/home/liuyug/osdlyrics/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/liuyug/osdlyrics/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/liuyug/osdlyrics'

I check the code src/ol_scroll_window.c
GdkWindowEdge ret_edge;

I fix 
GdkWindowEdge ret_edge=-1;

So compile ok. 

My linux is slackware 13.37.

Original issue reported on code.google.com by liu...@gmail.com on 3 Dec 2011 at 12:11

GoogleCodeExporter commented 8 years ago
Thanks for this bug. It's fixed in the develop branch now

Original comment by tigerso...@gmail.com on 4 Dec 2011 at 3:40