From cb31934cf32f88a1e46f4ea655ac76698d975f1d Mon Sep 17 00:00:00 2001 From: John McNamara Date: Thu, 21 Sep 2023 12:23:16 +0100 Subject: [PATCH] Fix minor Windows warnings. --- include/xlsxwriter/packager.h | 2 ++ src/utility.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/xlsxwriter/packager.h b/include/xlsxwriter/packager.h index 76382bd0..5990dbac 100644 --- a/include/xlsxwriter/packager.h +++ b/include/xlsxwriter/packager.h @@ -12,7 +12,9 @@ #include #ifdef USE_SYSTEM_MINIZIP +#ifdef __GNUC__ #pragma GCC system_header +#endif #include "minizip/zip.h" #else #include "third_party/zip.h" diff --git a/src/utility.c b/src/utility.c index 28e91939..d59157f2 100644 --- a/src/utility.c +++ b/src/utility.c @@ -640,7 +640,7 @@ lxw_version_id(void) uint16_t lxw_hash_password(const char *password) { - uint16_t byte_count = strlen(password); + uint16_t byte_count = (uint16_t) strlen(password); uint16_t hash = 0; const char *p = &password[byte_count];