Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/flex/dist Mark yy_fatal_error as noreturn if su...



details:   https://anonhg.NetBSD.org/src/rev/f0e912d1c7f4
branches:  trunk
changeset: 768819:f0e912d1c7f4
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Aug 27 18:36:03 2011 +0000

description:
Mark yy_fatal_error as noreturn if supported by the compiler.

diffstat:

 external/bsd/flex/dist/flex.skl |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 78881a0ace08 -r f0e912d1c7f4 external/bsd/flex/dist/flex.skl
--- a/external/bsd/flex/dist/flex.skl   Sat Aug 27 18:35:19 2011 +0000
+++ b/external/bsd/flex/dist/flex.skl   Sat Aug 27 18:36:03 2011 +0000
@@ -736,6 +736,9 @@
 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 );
+#if defined(__GNUC__) && __GNUC__ >= 3
+__attribute__((__noreturn__))
+#endif
 static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG );
 ]])
 



Home | Main Index | Thread Index | Old Index