mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
Fix clang compile errors
Thanks Keiko Nakata for reporting! Fixes #2164
This commit is contained in:
parent
5a1cef6381
commit
6a24d70120
@ -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!
|
||||
|
@ -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>
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -34,7 +34,7 @@ class Reply
|
||||
unsigned long _req;
|
||||
unsigned long _write;
|
||||
unsigned long _data_size;
|
||||
unsigned long _data[];
|
||||
unsigned long _data[0];
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user