diff options
author | 2024-11-28 16:22:09 +0100 | |
---|---|---|
committer | 2024-11-28 16:22:09 +0100 | |
commit | 1813edad70efd32feba4f5778536de264241132e (patch) | |
tree | bcfb81fe083df54bce92ea0d78f6d61067914e8a /src/jplist.c | |
parent | b611aa62b8373f6d47bf3528782550a2667cc0f0 (diff) | |
download | libplist-1813edad70efd32feba4f5778536de264241132e.tar.gz libplist-1813edad70efd32feba4f5778536de264241132e.tar.bz2 |
Fix warnings on MSVC
Diffstat (limited to 'src/jplist.c')
-rw-r--r-- | src/jplist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jplist.c b/src/jplist.c index 4f30cd0..1c7a932 100644 --- a/src/jplist.c +++ b/src/jplist.c @@ -72,8 +72,10 @@ void plist_json_set_debug(int debug) } #ifndef HAVE_STRNDUP +#ifndef _MSC_VER #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" +#endif static char* strndup(const char* str, size_t len) { char *newstr = (char *)malloc(len+1); @@ -83,8 +85,10 @@ static char* strndup(const char* str, size_t len) } return newstr; } +#ifndef _MSC_VER #pragma GCC diagnostic pop #endif +#endif static size_t dtostr(char *buf, size_t bufsize, double realval) { |