]> granicus.if.org Git - python/commitdiff
Get rid of compiler warning about with_msg and as_msg being unused
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 16 Mar 2006 06:01:25 +0000 (06:01 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 16 Mar 2006 06:01:25 +0000 (06:01 +0000)
Parser/parsetok.c

index 07590c2d2f7fcfbfa6fdda4a9838b54ad4804410..cb79fe48657247df19a378f2f2cee35def999724 100644 (file)
@@ -92,11 +92,13 @@ PyParser_ParseFileFlags(FILE *fp, const char *filename, grammar *g, int start,
 /* Parse input coming from the given tokenizer structure.
    Return error code. */
 
+#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
 static char with_msg[] =
 "%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
 
 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)