From 5bb80b76b093130be14161bb0c8d05f6fea749f3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 4 Mar 2020 23:13:18 +0900 Subject: [PATCH] [win32] suppress false warning by mingw gcc --- vsnprintf.c | 2 +- win32/win32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsnprintf.c b/vsnprintf.c index 889c409254..3efef20cd8 100644 --- a/vsnprintf.c +++ b/vsnprintf.c @@ -561,7 +561,7 @@ BSD_vfprintf(FILE *fp, const char *fmt0, va_list ap) int fprec = 0; /* floating point precision */ char expstr[7]; /* buffer for exponent string */ #endif - u_long MAYBE_UNUSED(ulval); /* integer arguments %[diouxX] */ + u_long MAYBE_UNUSED(ulval) = 0; /* integer arguments %[diouxX] */ #ifdef _HAVE_SANE_QUAD_ u_quad_t MAYBE_UNUSED(uqval); /* %q integers */ #endif /* _HAVE_SANE_QUAD_ */ diff --git a/win32/win32.c b/win32/win32.c index 0fa3855fb3..b64540e4ae 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5271,7 +5271,7 @@ static int wrename(const WCHAR *oldpath, const WCHAR *newpath) { int res = 0; - DWORD oldatts, newatts = (DWORD)-1; + DWORD oldatts = 0, newatts = (DWORD)-1; DWORD oldvsn = 0, newvsn = 0, e; e = get_attr_vsn(oldpath, &oldatts, &oldvsn);