[systemd-devel] build broken on clang

Shawn Landden shawn at churchofgit.com
Sat Nov 30 19:26:24 PST 2013


On Sat, Nov 30, 2013 at 5:46 PM, Greg KH <gregkh at linuxfoundation.org> wrote:
> On Sun, Dec 01, 2013 at 12:38:44AM +0100, Thomas H.P. Andersen wrote:
>> Hi,
>>
>> Since 777d7a6123cbb192a8ff9e4ac5c05b1da84b4217 the build is broken on clang:
>>
>> src/libsystemd-bus/bus-control.c:686:41: error: fields must have a
>> constant size: 'variable length array in structure' extension will
>> never be supported
>>                                 uint8_t buffer[sz];
>>                                         ^
>> src/libsystemd-bus/bus-control.c:748:33: error: fields must have a
>> constant size: 'variable length array in structure' extension will
>> never be supported
>>                         uint8_t buffer[sz];
>
> Seems like someone needs to "fix" clang with this well-known gcc
> extension :)
There was a whole talk about this at the recent Linux Plumbers Conference 2013
http://www.linuxplumbersconf.org/2013/ocw/sessions/1221
http://www.youtube.com/watch?v=aliQx0uDSX0
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list