Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: [riastradh-drm2] src/sys/external/bsd/drm2/dist/drm/i915



On Wed, 24 Jul 2013, Taylor R Campbell wrote:
Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915 [riastradh-drm2]: intel_dp.c

Log Message:
Avoid {0} struct initializer in intel_dp_init_connector.

The usual way we deal with this in NetBSD is to write

        typename varname = {.membername = 0};

where membername is any valid member of the struct.

I wish gcc -Wmissing-field-initializers would recognise that {0} is
a special case that does nto deserve a warning, so we could write the
natural and well-defined code

        typename varname = {0};

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index