Skip to content

Commit 5315cb9

Browse files
committed
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')
1 parent 8094e66 commit 5315cb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sounddevice_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@
313313
/* from stdio.h */
314314
FILE* fopen(const char* path, const char* mode);
315315
int fclose(FILE* fp);
316-
FILE* stderr; /* GNU C library */
317-
FILE* __stderrp; /* macOS */
316+
extern FILE* stderr; /* GNU C library */
317+
extern FILE* __stderrp; /* macOS */
318318
""")
319319

320320
if __name__ == '__main__':

0 commit comments

Comments
 (0)