Suppress -Wnonnull warning in the except sample

We really want to crash here, so disable the helpful warning that tries
to prevent us from doing it.
This commit is contained in:
Vadim Zeitlin 2022-12-18 23:21:19 +01:00
parent 828a5b2c52
commit 5bc7ffd8c7

View file

@ -61,8 +61,12 @@
static void DoCrash()
{
wxGCC_WARNING_SUPPRESS(nonnull)
char *p = 0;
strcpy(p, "Let's crash");
wxGCC_WARNING_RESTORE(nonnull)
}
// ----------------------------------------------------------------------------