Fix warnings on gcc 14.2.0.

This commit is contained in:
Jonas 'Sortie' Termansen 2024-08-21 17:17:11 +02:00
parent 02e0abfe5d
commit 82fa95f8cd
33 changed files with 115 additions and 112 deletions
kernel/x86-family

View file

@ -542,10 +542,7 @@ GuestAdditions* GetGuestAdditions()
void Init()
{
pcifind_t pcifind;
memset(&pcifind, 255, sizeof(pcifind));
pcifind.vendorid = 0x80EE;
pcifind.deviceid = 0xCAFE;
pcifind_t pcifind(NULL, 0x80EE, 0xCAFE);
uint32_t devaddr = PCI::SearchForDevices(pcifind, 0);
if ( !devaddr )