summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2020-03-11 10:25:09 +0100
committerMatthias Geier <Matthias.Geier@gmail.com>2020-03-18 09:55:48 +0100
commit5315cb9f3e61862ecac7c17b5d29c3886618b9a2 (patch)
tree2080a6649dc346cdadb40d453cf90a9792c23b89
parent8094e66a0bd7f129459bc580be924bb670184fb3 (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.py4
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__':