[ppc] avoid empty mdproc struct
Avoid empty structs, that have undefined behavior in C99 and make compilers complain about it (empty struct has size 0 in C, size 1 in C++). Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D21231
This commit is contained in:
@@ -46,6 +46,11 @@ struct mdthread {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct mdproc {
|
struct mdproc {
|
||||||
|
/* Avoid empty structs, that have undefined behavior in C99 and
|
||||||
|
* make compilers complain about it
|
||||||
|
* (empty struct has size 0 in C, size 1 in C++).
|
||||||
|
*/
|
||||||
|
long md_spare;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __powerpc64__
|
#ifdef __powerpc64__
|
||||||
|
|||||||
Reference in New Issue
Block a user