From b3c25e57bc8d72e9de082e06bf48bfe14aa977f9 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Tue, 6 Mar 2018 23:16:19 +0100 Subject: [PATCH] Fix warning for missing field initializers --- samples/console/console.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 05f70a6a07..0b7e3d6ee5 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -40,12 +40,13 @@ static const wxCmdLineEntryDesc cmdLineDesc[] = { { wxCMD_LINE_SWITCH, "h", "help", "show this help message", wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP }, - { wxCMD_LINE_SWITCH, "d", "dummy", "a dummy switch" }, + { wxCMD_LINE_SWITCH, "d", "dummy", "a dummy switch", + wxCMD_LINE_VAL_NONE, 0 }, { wxCMD_LINE_SWITCH, "s", "secret", "a secret switch", wxCMD_LINE_VAL_NONE, wxCMD_LINE_HIDDEN }, // ... your other command line options here... - { wxCMD_LINE_NONE } + wxCMD_LINE_DESC_END }; int main(int argc, char **argv)