summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2019-11-03 07:30:33 +0100
committerArmin Rigo <arigo@tunes.org>2019-11-03 07:30:33 +0100
commite759e91bca5dd736bde6b3bcbe6e039bed9e310d (patch)
treed8856cae641808f07169d671d39472e0bc8cbab9 /cffi
parentb0df102e600b7ec538319e9f15cc604755b8b44d (diff)
downloadcffi-e759e91bca5dd736bde6b3bcbe6e039bed9e310d.tar.gz
Tweak the warning message
Diffstat (limited to 'cffi')
-rw-r--r--cffi/cparser.py6
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