[Git][wxwidgets/wxwidgets][master] 2 commits: Suppress spurious warning introduced in parent commit

2 views
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Jul 1, 2026, 1:22:01 PM (4 days ago) Jul 1
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • 317610ed
    by Vadim Zeitlin at 2026-07-01T18:42:17+02:00
    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.
    
  • dd5a0cea
    by Vadim Zeitlin at 2026-07-01T18:48:15+02:00
    Guard test for wxPropertyGrid macros with wxUSE_PROPGRID
    
    This is another correction to the test added in the grandparent commit.
    
    See #26651.
    

1 changed file:

Changes:

  • tests/allheaders.cpp
    ... ... @@ -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

Reply all
Reply to author
Forward
0 new messages