Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37879875
en ru br
ALT Linux repos
S:2.6.4.0.88.9801-alt2
5.0: 2.5.33-alt3
4.1: 2.5.33-alt3
4.0: 2.5.33-alt3
3.0: 2.5.4a-ipl16mdk

Group :: Development/Other
RPM: flex

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: flex-2.5.36-alt-yy_fatal_error-noreturn.patch
Download


yy_fatal_error calls exit(), so it should be declared
noreturn (improves optimisation of things that call it
and makes -Wmissing-noreturn happy).
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=189784
--- flex/flex.skl
+++ flex/flex.skl
@@ -734,7 +734,11 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
 static yy_state_type yy_get_previous_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );
 static yy_state_type yy_try_NUL_trans M4_YY_PARAMS( yy_state_type current_state  M4_YY_PROTO_LAST_ARG);
 static int yy_get_next_buffer M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );
+#ifdef __GNUC__
+static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG ) __attribute__((noreturn));
+#else
 static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG );
+#endif
 ]])
 
 %endif
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin