Suppress spurious warning introduced in parent commit We get unexpected and unwanted -Wsuggest-attribute=const for the test code added in the last commit. See #26651.
Guard test for wxPropertyGrid macros with wxUSE_PROPGRID This is another correction to the test added in the grandparent commit. See #26651.
| ... | ... | @@ -430,5 +430,15 @@ TEST_CASE("wxNO_IMPLICIT_WXSTRING_ENCODING", "[string]") |
| 430 | 430 | }
|
| 431 | 431 | |
| 432 | 432 | // Check that wxPropertyGrid macros compile without warnings too.
|
| 433 | +#if wxUSE_PROPGRID
|
|
| 434 | + |
|
| 435 | +// Except that it proposes const attribute to the function declared by the
|
|
| 436 | +// macro which would be a wrong thing to do it general, so suppress it.
|
|
| 437 | +#ifdef GCC_TURN_OFF
|
|
| 438 | + GCC_TURN_OFF(suggest-attribute=const)
|
|
| 439 | +#endif
|
|
| 440 | + |
|
| 433 | 441 | WX_PG_DECLARE_VARIANT_DATA(wxArrayDouble)
|
| 434 | 442 | WX_PG_IMPLEMENT_VARIANT_DATA_DUMMY_EQ(wxArrayDouble)
|
| 443 | + |
|
| 444 | +#endif // wxUSE_PROPGRID |
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help