From: Vadim Zeitlin Date: Sun, 12 Apr 2009 23:43:04 +0000 (+0000) Subject: fix g++ warnings about initialization order mismatch after the last change X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f20e268907be38d42ee7ced069832110b5a7d86a fix g++ warnings about initialization order mismatch after the last change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/private/wxprintf.h b/include/wx/private/wxprintf.h index 8cfdb2ac1b..1bdc7b62ac 100644 --- a/include/wx/private/wxprintf.h +++ b/include/wx/private/wxprintf.h @@ -795,9 +795,11 @@ struct wxPrintfConvSpecParser typedef wxPrintfConvSpec ConvSpec; wxPrintfConvSpecParser(const CharType *fmt) - : posarg_present(false), nonposarg_present(false), - nargs(0) { + nargs = 0; + posarg_present = + nonposarg_present = false; + memset(pspec, 0, sizeof(pspec)); // parse the format string