Skip to content
Snippets Groups Projects
Commit 1e4b0be2 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Add compile time check for the collection_id field in the collection_hdr struct

parent f05e2904
No related branches found
No related tags found
1 merge request!34Update cmp_tool to version v0.13
......@@ -109,7 +109,7 @@ struct collection_hdr {
} __attribute__((packed));
compile_time_assert(sizeof(struct collection_hdr) == COLLECTION_HDR_SIZE, N_DPU_ICU_COLLECTION_HDR_SIZE_IS_NOT_CORRECT);
compile_time_assert(sizeof(struct collection_hdr) % sizeof(uint32_t) == 0, N_DPU_ICU_COLLECTION_HDR_NOT_4_BYTE_ALLIED);
/* TODO: compile_time_assert(sizeof(struct collection_hdr.collection_id) == sizeof(union collection_id), N_DPU_ICU_COLLECTION_COLLECTION_ID_DO_NOT_MATCH); */
compile_time_assert(sizeof(((struct collection_hdr *)0)->collection_id) == sizeof(union collection_id), N_DPU_ICU_COLLECTION_COLLECTION_ID_DO_NOT_MATCH);
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment