mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-20 22:06:25 +08:00
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:
@@ -61,8 +61,12 @@
|
||||
|
||||
static void DoCrash()
|
||||
{
|
||||
wxGCC_WARNING_SUPPRESS(nonnull)
|
||||
|
||||
char *p = 0;
|
||||
strcpy(p, "Let's crash");
|
||||
|
||||
wxGCC_WARNING_RESTORE(nonnull)
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user