From 44eb8f042ef477bf5ce93de2333be8e09390c692 Mon Sep 17 00:00:00 2001 From: tnozaki Date: Wed, 4 Oct 2006 13:51:59 +0000 Subject: [PATCH] fix gcc -Werror -Wmissing-braces problem mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'', so changed 1st field of union from character array to integer. --- lib/libc/stdio/findfp.c | 6 +++--- sys/arch/alpha/include/ansi.h | 4 ++-- sys/arch/amd64/include/ansi.h | 4 ++-- sys/arch/arm/include/ansi.h | 4 ++-- sys/arch/hppa/include/ansi.h | 4 ++-- sys/arch/i386/include/ansi.h | 4 ++-- sys/arch/ia64/include/ansi.h | 4 ++-- sys/arch/m68k/include/ansi.h | 4 ++-- sys/arch/mips/include/ansi.h | 4 ++-- sys/arch/pc532/include/ansi.h | 4 ++-- sys/arch/pdp10/include/ansi.h | 4 ++-- sys/arch/powerpc/include/ansi.h | 4 ++-- sys/arch/sh3/include/ansi.h | 4 ++-- sys/arch/sh5/include/ansi.h | 4 ++-- sys/arch/sparc/include/ansi.h | 4 ++-- sys/arch/sparc64/include/ansi.h | 4 ++-- sys/arch/vax/include/ansi.h | 4 ++-- 17 files changed, 35 insertions(+), 35 deletions(-) diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 49a631999c76..7f59a1bff3be 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -1,4 +1,4 @@ -/* $NetBSD: findfp.c,v 1.20 2003/08/07 16:43:23 agc Exp $ */ +/* $NetBSD: findfp.c,v 1.21 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)findfp.c 8.2 (Berkeley) 1/4/94"; #else -__RCSID("$NetBSD: findfp.c,v 1.20 2003/08/07 16:43:23 agc Exp $"); +__RCSID("$NetBSD: findfp.c,v 1.21 2006/10/04 13:52:00 tnozaki Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -70,7 +70,7 @@ static struct __sfileext usualext[FOPEN_MAX - 3]; static struct glue uglue = { 0, FOPEN_MAX - 3, usual }; #ifdef _REENTRANT -#define STDEXT { {0}, {{{0}}}, MUTEX_INITIALIZER, COND_INITIALIZER, NULL, 0, 0} +#define STDEXT { {0}, {{0}}, MUTEX_INITIALIZER, COND_INITIALIZER, NULL, 0, 0} struct __sfileext __sFext[3] = { STDEXT, STDEXT, STDEXT}; diff --git a/sys/arch/alpha/include/ansi.h b/sys/arch/alpha/include/ansi.h index ba643febf3e4..6bdb56aa88cf 100644 --- a/sys/arch/alpha/include/ansi.h +++ b/sys/arch/alpha/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.18 2005/12/11 12:16:16 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.19 2006/10/04 13:51:59 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -95,8 +95,8 @@ typedef struct { * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/amd64/include/ansi.h b/sys/arch/amd64/include/ansi.h index 2d1601ebb8fe..386218aeb2c0 100644 --- a/sys/arch/amd64/include/ansi.h +++ b/sys/arch/amd64/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.3 2005/12/11 12:16:25 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.4 2006/10/04 13:51:59 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -90,8 +90,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/arm/include/ansi.h b/sys/arch/arm/include/ansi.h index e9ea60e0769e..7452ae81de7c 100644 --- a/sys/arch/arm/include/ansi.h +++ b/sys/arch/arm/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.6 2005/12/11 12:16:46 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.7 2006/10/04 13:51:59 tnozaki Exp $ */ /* * Copyright (c) 1990, 1993 @@ -98,8 +98,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/hppa/include/ansi.h b/sys/arch/hppa/include/ansi.h index b50e4f3fcf60..ece4d055d2f2 100644 --- a/sys/arch/hppa/include/ansi.h +++ b/sys/arch/hppa/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.6 2005/12/11 12:17:37 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.7 2006/10/04 13:51:59 tnozaki Exp $ */ /* $OpenBSD: ansi.h,v 1.4 2000/02/22 17:29:12 millert Exp $ */ @@ -88,8 +88,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; double __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/i386/include/ansi.h b/sys/arch/i386/include/ansi.h index 66f35bad582c..afd264486c86 100644 --- a/sys/arch/i386/include/ansi.h +++ b/sys/arch/i386/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.18 2005/12/11 12:17:43 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.19 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -90,8 +90,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/ia64/include/ansi.h b/sys/arch/ia64/include/ansi.h index de6534171a47..37d25e586327 100644 --- a/sys/arch/ia64/include/ansi.h +++ b/sys/arch/ia64/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.2 2006/07/07 06:42:32 cherry Exp $ */ +/* $NetBSD: ansi.h,v 1.3 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -99,8 +99,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/m68k/include/ansi.h b/sys/arch/m68k/include/ansi.h index 23d3114fb7f6..bdbc587b3893 100644 --- a/sys/arch/m68k/include/ansi.h +++ b/sys/arch/m68k/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.17 2005/12/11 12:17:53 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.18 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -89,8 +89,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/mips/include/ansi.h b/sys/arch/mips/include/ansi.h index 4fff2415ee09..cf4320cf4a0b 100644 --- a/sys/arch/mips/include/ansi.h +++ b/sys/arch/mips/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.20 2005/12/11 12:18:09 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.21 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -96,8 +96,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/pc532/include/ansi.h b/sys/arch/pc532/include/ansi.h index c8edbfbed3b0..93a18fce5076 100644 --- a/sys/arch/pc532/include/ansi.h +++ b/sys/arch/pc532/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.20 2006/09/04 01:04:29 simonb Exp $ */ +/* $NetBSD: ansi.h,v 1.21 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -90,8 +90,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/pdp10/include/ansi.h b/sys/arch/pdp10/include/ansi.h index e8689bf0746c..3a68d6bb98ae 100644 --- a/sys/arch/pdp10/include/ansi.h +++ b/sys/arch/pdp10/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.3 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -102,8 +102,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/powerpc/include/ansi.h b/sys/arch/powerpc/include/ansi.h index 20f6cda3a88a..c107c9d19e1b 100644 --- a/sys/arch/powerpc/include/ansi.h +++ b/sys/arch/powerpc/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.22 2005/12/11 12:18:43 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.23 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -100,8 +100,8 @@ typedef struct { * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/sh3/include/ansi.h b/sys/arch/sh3/include/ansi.h index 8e08933dd2c2..2f59b9c946a3 100644 --- a/sys/arch/sh3/include/ansi.h +++ b/sys/arch/sh3/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.9 2006/05/15 08:57:59 uwe Exp $ */ +/* $NetBSD: ansi.h,v 1.10 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -88,8 +88,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/sh5/include/ansi.h b/sys/arch/sh5/include/ansi.h index 59264dff7565..b4b391fb22de 100644 --- a/sys/arch/sh5/include/ansi.h +++ b/sys/arch/sh5/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.9 2005/12/11 12:19:00 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.10 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -98,8 +98,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/sparc/include/ansi.h b/sys/arch/sparc/include/ansi.h index abef988513ae..5e69b074d873 100644 --- a/sys/arch/sparc/include/ansi.h +++ b/sys/arch/sparc/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.17 2005/12/11 12:19:05 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.18 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -89,8 +89,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/sparc64/include/ansi.h b/sys/arch/sparc64/include/ansi.h index 13450b53a88a..14b7ac389fa9 100644 --- a/sys/arch/sparc64/include/ansi.h +++ b/sys/arch/sparc64/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.11 2005/12/11 12:19:10 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.12 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -89,8 +89,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ diff --git a/sys/arch/vax/include/ansi.h b/sys/arch/vax/include/ansi.h index b4e9e2a3d57b..7af5d62e239e 100644 --- a/sys/arch/vax/include/ansi.h +++ b/sys/arch/vax/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.19 2005/12/11 12:19:34 christos Exp $ */ +/* $NetBSD: ansi.h,v 1.20 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -100,8 +100,8 @@ * stream conversions. The content must not be referenced by user programs. */ typedef union { - char __mbstate8[128]; __int64_t __mbstateL; /* for alignment */ + char __mbstate8[128]; } __mbstate_t; #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */