diff options
author | Armin Rigo <arigo@tunes.org> | 2018-11-27 21:49:43 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2018-11-27 21:49:43 +0200 |
commit | 78f8426900f32f5392fb783a907cd5d56325e768 (patch) | |
tree | a467d9fb5ab07c1a449ac35d1c735b8a92bfb286 /cffi | |
parent | 9178ac12a645f71749b273cc630d41b98001ad6a (diff) | |
download | cffi-78f8426900f32f5392fb783a907cd5d56325e768.tar.gz |
Silence bogus warning
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/cparser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cffi/cparser.py b/cffi/cparser.py index ab2fea5..1fc0ec6 100644 --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -156,7 +156,6 @@ def _preprocess(csource): macrovalue = macrovalue.replace('\\\n', '').strip() macros[macroname] = macrovalue csource = _r_define.sub('', csource) - _warn_for_string_literal(csource) # if pycparser.__version__ < '2.14': csource = _workaround_for_old_pycparser(csource) @@ -173,6 +172,9 @@ def _preprocess(csource): # Replace `extern "Python"` with start/end markers csource = _preprocess_extern_python(csource) # + # Now there should not be any string literal left; warn if we get one + _warn_for_string_literal(csource) + # # Replace "[...]" with "[__dotdotdotarray__]" csource = _r_partial_array.sub('[__dotdotdotarray__]', csource) # |