From c2b6013026cc4b171c890e3569d3b6fcc32b3dcc Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 1 Oct 2002 14:08:08 +0000 Subject: [PATCH] It is too much work convincing lint why we would want empty structures, so make the non-empty #ifdef lint. --- sys/amd64/include/pcb.h | 3 +++ sys/amd64/include/proc.h | 3 +++ sys/i386/include/pcb.h | 3 +++ sys/i386/include/proc.h | 3 +++ 4 files changed, 12 insertions(+) diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index 50cff077471..fd06e7c6bbb 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -79,6 +79,9 @@ struct pcb { * core dumps. For the i386: ??? */ struct md_coredump { +#ifdef lint + int dummy; +#endif }; #ifdef _KERNEL diff --git a/sys/amd64/include/proc.h b/sys/amd64/include/proc.h index f011b5c3714..e3711b0305c 100644 --- a/sys/amd64/include/proc.h +++ b/sys/amd64/include/proc.h @@ -51,6 +51,9 @@ struct proc_ldt { * Machine-dependent part of the proc structure for i386. */ struct mdthread { +#ifdef lint + int dummy; +#endif }; struct mdproc { diff --git a/sys/i386/include/pcb.h b/sys/i386/include/pcb.h index 50cff077471..fd06e7c6bbb 100644 --- a/sys/i386/include/pcb.h +++ b/sys/i386/include/pcb.h @@ -79,6 +79,9 @@ struct pcb { * core dumps. For the i386: ??? */ struct md_coredump { +#ifdef lint + int dummy; +#endif }; #ifdef _KERNEL diff --git a/sys/i386/include/proc.h b/sys/i386/include/proc.h index f011b5c3714..e3711b0305c 100644 --- a/sys/i386/include/proc.h +++ b/sys/i386/include/proc.h @@ -51,6 +51,9 @@ struct proc_ldt { * Machine-dependent part of the proc structure for i386. */ struct mdthread { +#ifdef lint + int dummy; +#endif }; struct mdproc {