Allow, and even require, semicolon after wxTEST_DIALOG() macro

This macro was documented (in its comment) and even used with a
semicolon after it, but it didn't require one and using one after it
resulted in a warning with gcc in pedantic mode.

Change the macro definition to use wxSTATEMENT_MACRO_BEGIN/END to
require (and, trivially, also allow to be used without warnings) a
semicolon after it now.
This commit is contained in:
Vadim Zeitlin 2023-01-13 17:24:08 +01:00
parent 00c541934d
commit bed3896189
2 changed files with 6 additions and 2 deletions

View file

@ -91,6 +91,9 @@ Changes in behaviour which may result in build errors
options was completely removed. Please use address sanitizer or similar
tools that are incomparably more useful for this than that legacy code.
- wxTEST_DIALOG() macro now must be followed by semicolon, whereas previously
it was only supposed to, but it wasn't mandatory to use one after it.
3.3.0: (released 2022-??-??)
----------------------------