Re: [PATCH v2 05/10] libvhost-user: Declare uffdio_register early to make it C90 compliant

2022-12-20 Thread Philippe Mathieu-Daudé
On 20/12/22 20:27, Marcel Holtmann wrote: When using libvhost-user source in an external project that wants to comply with the C90 standard, it is best to declare variables before code. CC libvhost-user.o libvhost-user.c: In function ‘generate_faults’: libvhost-user.c:683:9: error: ISO

[PATCH v2 05/10] libvhost-user: Declare uffdio_register early to make it C90 compliant

2022-12-20 Thread Marcel Holtmann
When using libvhost-user source in an external project that wants to comply with the C90 standard, it is best to declare variables before code. CC libvhost-user.o libvhost-user.c: In function ‘generate_faults’: libvhost-user.c:683:9: error: ISO C90 forbids mixed declarations and code