Verify the absence of holes in struct jobs_eta at compile time
[fio.git] / eta.c
diff --git a/eta.c b/eta.c
index 647a1bdd8eed7433c2413fde356844720b45e722..5900bc0fd9197f28795bc34e303da82a2276780d 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -736,6 +736,9 @@ void print_thread_status(void)
 
 void print_status_init(int thr_number)
 {
+       compiletime_assert(sizeof(struct jobs_eta) ==
+                          sizeof(struct jobs_eta_packed), "jobs_eta");
+
        DRD_IGNORE_VAR(__run_str);
        __run_str[thr_number] = 'P';
        update_condensed_str(__run_str, run_str);