]> granicus.if.org Git - python/commitdiff
Get rid of compiler warning
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 17 Mar 2006 05:44:46 +0000 (05:44 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 17 Mar 2006 05:44:46 +0000 (05:44 +0000)
Parser/parsetok.c

index cb79fe48657247df19a378f2f2cee35def999724..d877fc95aa5e04c910ef020193f71d200381eea3 100644 (file)
@@ -98,7 +98,6 @@ static char with_msg[] =
 
 static char as_msg[] =
 "%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n";
-#endif
 
 static void
 warn(const char *msg, const char *filename, int lineno)
@@ -107,6 +106,7 @@ warn(const char *msg, const char *filename, int lineno)
                filename = "<string>";
        PySys_WriteStderr(msg, filename, lineno);
 }
+#endif
 
 static node *
 parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,