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:
parent
828a5b2c52
commit
5bc7ffd8c7
1 changed files with 4 additions and 0 deletions
|
|
@ -61,8 +61,12 @@
|
|||
|
||||
static void DoCrash()
|
||||
{
|
||||
wxGCC_WARNING_SUPPRESS(nonnull)
|
||||
|
||||
char *p = 0;
|
||||
strcpy(p, "Let's crash");
|
||||
|
||||
wxGCC_WARNING_RESTORE(nonnull)
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue