|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] tools: Remove all DECLARE_* op macros in xc
Hi,
On Mon, Nov 06, 2023 at 11:58:52AM +0100, Olaf Hering wrote:
> Mon, 6 Nov 2023 08:19:46 +0000 Alejandro Vallejo
> <alejandro.vallejo@xxxxxxxxx>:
>
> > + struct xen_sysctl sysctl = {0};
>
> What is that zero doing here?
Some context:
https://gcc.gnu.org/legacy-ml/gcc/2019-07/msg00066.html
{0} is the standardized form of zero-initialization. I don't mind terribly
using either, but {} requires an extra extension.
> I think a plain {} will do it as well.
>
>
> Olaf
It would, but only on compilers implementing GNU C extensions.
Thanks,
Alejandro
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |