Fix two warnings that appear with gcc4.4.3. The one in recording.c ("compact_view is used uninitialized" seems to be false positive unfortunately).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25082 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-03-08 23:56:54 +00:00
parent 61320ce0eb
commit 9a3c0778c6
2 changed files with 3 additions and 1 deletions

View file

@ -173,6 +173,7 @@ static int os_time (lua_State *L) {
static int os_exit (lua_State *L) { static int os_exit (lua_State *L) {
exit(luaL_optint(L, 1, EXIT_SUCCESS)); exit(luaL_optint(L, 1, EXIT_SUCCESS));
return EXIT_SUCCESS; /* never reached, surpress warning */
} }
static const luaL_Reg syslib[] = { static const luaL_Reg syslib[] = {

View file

@ -1064,7 +1064,8 @@ bool recording_screen(bool no_source)
int trig_ypos[NB_SCREENS]; /* trigger bar y pos */ int trig_ypos[NB_SCREENS]; /* trigger bar y pos */
int trig_width[NB_SCREENS]; /* trigger bar width */ int trig_width[NB_SCREENS]; /* trigger bar width */
int top_height_req[NB_SCREENS]; /* required height for top half */ int top_height_req[NB_SCREENS]; /* required height for top half */
bool compact_view[NB_SCREENS]; /* tweak layout tiny screens / big fonts */ /* tweak layout tiny screens / big fonts */
bool compact_view[NB_SCREENS] = { false };
struct gui_synclist lists; /* the list in the bottom vp */ struct gui_synclist lists; /* the list in the bottom vp */
#if defined(HAVE_AGC) || defined(HAVE_RECORDING_HISTOGRAM) #if defined(HAVE_AGC) || defined(HAVE_RECORDING_HISTOGRAM)
bool peak_valid = false; bool peak_valid = false;