lexer: Fix GCC warning for unhandled TOKEN_N_TYPES in lex_token_name().
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 21 Dec 2010 07:59:28 +0000 (23:59 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 21 Dec 2010 07:59:28 +0000 (23:59 -0800)
src/language/lexer/lexer.c

index 616b70081259eaaea471f3d29033ed95635b0541..a409a83ee957647a7b5d9b5f8195732ac8e0a61c 100644 (file)
@@ -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: