vl: Fix compiler warning for builds without VLC
PATCH 1/1 vl: Fix compiler warning for builds without VLC
This regression was caused by commit 70b94331.
CC vl.ovl.c: In function ‘select_display’:
vl.c:2064:12: error: unused variable ‘err’ [-Werror=unused-variable]
Error *err = NULL;
^Signed-off-by Stefan Weil <[email protected]>
--- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
@@ -2061,7 +2061,6 @@ static void select_vgahw (const char *p)static DisplayType select_display (const char *p) { -Error *err =NULL ;const char *opts;DisplayType display =DT_DEFAULT ;
@@ -2130,6 +2129,7 @@ static DisplayType select_display(const char *p) }else if (strstart (p,"vnc" , &opts)) {#ifdef CONFIG_VNC if (*opts =='=' ) { +Error *err =NULL ;if (vnc_parse (opts +1 , &err) ==NULL ) {error_report_err (err);exit (1 );
Signature · 1 line
2.1.4
Quoted 1 line · Stefan Weil
This regression was caused by commit
70b94331.
vnc, not vlc in the title.
Reviewed-by Wen Congyang <[email protected]>
Quoted 32 lines
CC vl.o
vl.c: In function ‘select_display’:
vl.c:2064:12: error: unused variable ‘err’ [-Werror=unused-variable]Error *err = NULL; ^Signed-off-by Stefan Weil <[email protected]>--- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)vl.c +1
-1@@ -2061,7 +2061,6 @@ static void select_vgahw (const char *p)static DisplayType select_display (const char *p) { -Error *err =NULL ;const char *opts;DisplayType display =DT_DEFAULT ;@@ -2130,6 +2129,7 @@ static DisplayType select_display(const char *p) }else if (strstart (p,"vnc" , &opts)) {#ifdef CONFIG_VNC if (*opts =='=' ) { +Error *err =NULL ;if (vnc_parse (opts +1 , &err) ==NULL ) {error_report_err (err);exit (1 );
Quoted 6 lines · Wen Congyang
Quoted 1 line · Stefan Weil
Quoted 1 line
This regression was caused by commit
70b94331.vnc, not vlc in the title.
Reviewed-by Wen Congyang <[email protected]>
Thanks, queued for 2.4.
Paolo