diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-16 06:01:25 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-16 06:01:25 +0000 |
commit | e4301d35c574d8149c41380047db7f6edc8e2270 (patch) | |
tree | 774345ace0c458474a2db82e280a1922c314c70e /Parser/parsetok.c | |
parent | 00afb9f78ca7fc455d01f7601c72585e315c6a92 (diff) | |
download | cpython-e4301d35c574d8149c41380047db7f6edc8e2270.tar.gz |
Get rid of compiler warning about with_msg and as_msg being unused
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r-- | Parser/parsetok.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 07590c2d2f..cb79fe4865 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -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) |