diff options
author | Armin Rigo <arigo@tunes.org> | 2019-11-03 07:30:33 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2019-11-03 07:30:33 +0100 |
commit | e759e91bca5dd736bde6b3bcbe6e039bed9e310d (patch) | |
tree | d8856cae641808f07169d671d39472e0bc8cbab9 | |
parent | b0df102e600b7ec538319e9f15cc604755b8b44d (diff) | |
download | cffi-e759e91bca5dd736bde6b3bcbe6e039bed9e310d.tar.gz |
Tweak the warning message
-rw-r--r-- | cffi/cparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cffi/cparser.py b/cffi/cparser.py index c275f42..ea27c48 100644 --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -159,9 +159,9 @@ def _warn_for_string_literal(csource): def _warn_for_non_extern_non_static_global_variable(decl): if not decl.storage: import warnings - warnings.warn("Declaration of global variable '%s' in cdef() should " - "be marked 'extern' for consistency (or possibly " - "'static' in API mode)" % (decl.name,)) + warnings.warn("Global variable '%s' in cdef(): for consistency " + "with C it should have a storage class specifier " + "(usually 'extern')" % (decl.name,)) def _preprocess(csource): # Remove comments. NOTE: this only work because the cdef() section |