Fix clang compile errors

Thanks Keiko Nakata for reporting!

Fixes #2164
This commit is contained in:
Norman Feske 2016-11-24 17:45:15 +01:00 committed by Christian Helmuth
parent 5a1cef6381
commit 6a24d70120
4 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ class Genode::Slab::Block
* the Slab allocator).
*/
char _data[]; /* dynamic data (state table and slab entries) */
char _data[0]; /* dynamic data (state table and slab entries) */
/*
* Caution! no member variables allowed below this line!
@ -108,7 +108,7 @@ class Genode::Slab::Block
struct Genode::Slab::Entry
{
Block █
char data[];
char data[0];
/*
* Caution! no member variables allowed below this line!

View File

@ -50,7 +50,7 @@ class Net::Tcp_packet
uint16_t _window_size;
uint16_t _checksum;
uint16_t _urgent_ptr;
uint32_t _data[];
uint32_t _data[0];
struct Flags : Genode::Register<8>
{

View File

@ -46,7 +46,7 @@ struct Platform::Property_message
/*
* Start of the buffer that contains a sequence of tags
*/
char buffer[];
char buffer[0];
/*
* There must be no member variables after this point
@ -75,7 +75,7 @@ struct Platform::Property_message
*/
uint32_t volatile const len;
char payload[];
char payload[0];
/**
* Utility for returning a response size of a tag type

View File

@ -34,7 +34,7 @@ class Reply
unsigned long _req;
unsigned long _write;
unsigned long _data_size;
unsigned long _data[];
unsigned long _data[0];
public: