Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150660067
D21231.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
428 B
Referenced Files
None
Subscribers
None
D21231.diff
View Options
Index: head/sys/powerpc/include/proc.h
===================================================================
--- head/sys/powerpc/include/proc.h
+++ head/sys/powerpc/include/proc.h
@@ -46,6 +46,11 @@
};
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__
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 4:20 AM (2 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30751865
Default Alt Text
D21231.diff (428 B)
Attached To
Mode
D21231: [ppc] avoid empty mdproc struct
Attached
Detach File
Event Timeline
Log In to Comment