diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2020-03-11 10:25:09 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2020-03-18 09:55:48 +0100 |
| commit | 5315cb9f3e61862ecac7c17b5d29c3886618b9a2 (patch) | |
| tree | 2080a6649dc346cdadb40d453cf90a9792c23b89 | |
| parent | 8094e66a0bd7f129459bc580be924bb670184fb3 (diff) | |
Add "extern" to stderr to avoid CFFI warning
UserWarning: Global variable 'stderr' in cdef():
for consistency with C it should have a storage class specifier
(usually 'extern')
| -rw-r--r-- | sounddevice_build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sounddevice_build.py b/sounddevice_build.py index c16e092..290dcfd 100644 --- a/sounddevice_build.py +++ b/sounddevice_build.py @@ -313,8 +313,8 @@ ffibuilder.cdef(""" /* from stdio.h */ FILE* fopen(const char* path, const char* mode); int fclose(FILE* fp); - FILE* stderr; /* GNU C library */ - FILE* __stderrp; /* macOS */ + extern FILE* stderr; /* GNU C library */ + extern FILE* __stderrp; /* macOS */ """) if __name__ == '__main__': |
