Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4993c7

Browse files
committed
Get rid of compiler warning about with_msg and as_msg being unused
1 parent 45aecf4 commit e4993c7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Parser/parsetok.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ PyParser_ParseFileFlags(FILE *fp, const char *filename, grammar *g, int start,
9292
/* Parse input coming from the given tokenizer structure.
9393
Return error code. */
9494

95+
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
9596
static char with_msg[] =
9697
"%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
9798

9899
static char as_msg[] =
99100
"%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n";
101+
#endif
100102

101103
static void
102104
warn(const char *msg, const char *filename, int lineno)

0 commit comments

Comments
 (0)