diff --git a/samples/except/except.cpp b/samples/except/except.cpp index 9fea370af6..ce322a1101 100644 --- a/samples/except/except.cpp +++ b/samples/except/except.cpp @@ -61,8 +61,12 @@ static void DoCrash() { + wxGCC_WARNING_SUPPRESS(nonnull) + char *p = 0; strcpy(p, "Let's crash"); + + wxGCC_WARNING_RESTORE(nonnull) } // ----------------------------------------------------------------------------