From: Ben Pfaff Date: Tue, 21 Dec 2010 07:59:28 +0000 (-0800) Subject: lexer: Fix GCC warning for unhandled TOKEN_N_TYPES in lex_token_name(). X-Git-Tag: v0.7.7~98 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17753a2ef0a1e33b5478a970c747a2a57454ee07;p=pspp-builds.git lexer: Fix GCC warning for unhandled TOKEN_N_TYPES in lex_token_name(). --- diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index 616b7008..a409a83e 100644 --- a/src/language/lexer/lexer.c +++ b/src/language/lexer/lexer.c @@ -966,6 +966,7 @@ lex_token_name (enum token_type token) case T_POS_NUM: case T_NEG_NUM: case T_STRING: + case TOKEN_N_TYPES: NOT_REACHED (); case T_STOP: