error: too many arguments to function call

Description

While building from git:

/var/tmp/portage/sci-electronics/kicad-9999/work/kicad-9999/common/widgets/std_bitmap_button.cpp:42:56: error: too many arguments to function call, expected 0, have 1
        wxSize defaultSize = wxButton::GetDefaultSize( aParent );
                             ~~~~~~~~~~~~~~~~~~~~~~~~  ^~~~~~~
/usr/include/wx-3.0-gtk3/wx/button.h:43:19: note: 'GetDefaultSize' declared here
    static wxSize GetDefaultSize();
                  ^
1 error generated.

https://hokein.github.io/wxWidgets/classwx_button.html#ad399aa7e88a9f48e295360936f737e79

Steps to reproduce

1.Build present source 2.

KiCad Version

Application: KiCad

Version: (6.99.0-4486-g96fe93618e-dirty), release build

Libraries:
	wxWidgets 3.0.5
	FreeType 2.12.1
	HarfBuzz 5.3.1
	FontConfig 2.14.1
	libcurl/7.86.0 GnuTLS/3.7.8 (OpenSSL/1.1.1s) zlib/1.2.13 nghttp2/1.51.0

Platform: Linux 6.0.8-gentoo x86_64, 64 bit, Little endian, wxGTK, sway, wayland

Build Info:
	Date: Nov 25 2022 22:24:00
	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.80.0
	OCC: 7.7.0
	Curl: 7.86.0
	ngspice: 36
	Compiler: Clang 15.0.5 with C++ ABI 1002

Build settings:
	KICAD_SPICE=ON

PR to follow shortly