From a78c43f158671390e8a129605c9ad088aac9e572 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 13 Apr 2006 12:16:38 +0000 Subject: [PATCH] initialize nulLen to 0 for all compilers as some versions of gcc don't see that it's not used if left uninitialized too (bug 1469637) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/strconv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index f92260934f..92b18ad615 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -179,7 +179,7 @@ wxMBConv::ToWChar(wchar_t *dst, size_t dstLen, size_t dstWritten = 0; // the number of NULs terminating this string - size_t nulLen wxDUMMY_INITIALIZE(0); + size_t nulLen = 0; // not really needed, but just to avoid warnings // if we were not given the input size we just have to assume that the // string is properly terminated as we have no way of knowing how long it -- 2.45.2