Update gzclose.c

Fix compiler warning
kimkulling/add_windows_clang_issue-5519
Kim Kulling 2024-09-10 19:16:31 +02:00 committed by GitHub
parent 7c81fa89e7
commit 3a39648358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,9 @@
#include "gzguts.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-non-prototype"
/* gzclose() is in a separate file so that it is linked in only if it is used.
That way the other gzclose functions can be used instead to avoid linking in
unneeded compression or decompression routines. */
@ -23,3 +26,6 @@ int ZEXPORT gzclose(file)
return gzclose_r(file);
#endif
}
#pragma clang diagnostic pop