[systemd-devel] build broken on clang

Greg KH gregkh at linuxfoundation.org
Sat Nov 30 17:46:29 PST 2013


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 :)



More information about the systemd-devel mailing list