Commit 711929ea authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

lib/simbricks/pcie,network: avoid empty intro structs

Empty structs are not standard C and sizeof for them in gcc is zero but for c++
is 1.
parent bb82346e
......@@ -34,6 +34,7 @@
/** welcome message sent by network devices to eachother. */
struct SimbricksProtoNetIntro {
uint32_t dummy; /* not used, but need to avoid empty struct for standard C */
} __attribute__((packed));
/******************************************************************************/
......
......@@ -92,6 +92,7 @@ struct SimbricksProtoPcieDevIntro {
/** welcome message sent by host to device */
struct SimbricksProtoPcieHostIntro {
uint32_t dummy; /* not used, but need to avoid empty struct for standard C */
} __attribute__((packed));
/******************************************************************************/
......
Subproject commit babd65767a0a7db8e2d386d777b9d87c90b44677
Subproject commit bc74f6a9b15e0ab1b1e28a5a8a7a305b2af4b4af
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment