Re: [PATCH 1/2] libxl: workaround gcc 10.2 maybe-uninitialized warning

2020-08-19 Thread Ian Jackson
Marek Marczykowski-Górecki writes ("[PATCH 1/2] libxl: workaround gcc 10.2 maybe-uninitialized warning"): > It seems xlu_pci_parse_bdf has a state machine that is too complex for > gcc to understand. The build fails with: Reviewed-by: Ian Jackson

[PATCH 1/2] libxl: workaround gcc 10.2 maybe-uninitialized warning

2020-08-18 Thread Marek Marczykowski-Górecki
It seems xlu_pci_parse_bdf has a state machine that is too complex for gcc to understand. The build fails with: libxlu_pci.c: In function 'xlu_pci_parse_bdf': libxlu_pci.c:32:18: error: 'func' may be used uninitialized in this function [-Werror=maybe-uninitialized] 32 | pcidev-