[vlc-commits] [Git][videolan/vlc][master] webvtt: yyerror() should return void

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Aug 2 16:05:45 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
4c999964 by RĂ©mi Denis-Courmont at 2022-08-02T15:53:30+00:00
webvtt: yyerror() should return void

This is the return type recommended by the GNU/Bison reference infodoc.

Refs #27180.

- - - - -


1 changed file:

- modules/codec/webvtt/CSSGrammar.y


Changes:

=====================================
modules/codec/webvtt/CSSGrammar.y
=====================================
@@ -67,10 +67,9 @@ typedef void* yyscan_t;
 #define YY_DECL int yylex(union YYSTYPE *, yyscan_t)
 YY_DECL;
 
-static int yyerror(yyscan_t scanner, vlc_css_parser_t *p, const char *msg)
+static void yyerror(yyscan_t scanner, vlc_css_parser_t *p, const char *msg)
 {
     VLC_UNUSED(scanner);VLC_UNUSED(p);VLC_UNUSED(msg);
-    return 1;
 }
 
 %}



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4c9999640aafa551e5d2b585aa01baf233dfee4d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4c9999640aafa551e5d2b585aa01baf233dfee4d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list