Only part of the problem, Wconversion would complain as well.
Signed-off-by: Andrea Bastoni <[email protected]>
---
hypervisor/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hypervisor/pci.c b/hypervisor/pci.c
index 9274a0b1..fe85ae2f 100644
--- a/hypervisor/pci.c
+++ b/hypervisor/pci.c
@@ -24,7 +24,7 @@
#define for_each_configured_pci_device(dev, cell) \
for ((dev) = (cell)->pci_devices; \
- (dev) - (cell)->pci_devices < (cell)->config->num_pci_devices; \
+ ((dev) - (cell)->pci_devices) <
(int)((cell)->config->num_pci_devices); \
(dev)++)
#define for_each_pci_cap(cap, dev, counter) \
--
2.28.0
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20201022175826.199614-16-andrea.bastoni%40tum.de.