From dc6599e20f6a2a82c35533fba36d16fd43c53273 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 4 Nov 2014 12:09:35 -0800 Subject: [PATCH] Fix warning of missing field initializer. BUG: 18241135 Change-Id: I91304eb608bc3336ce5fcd5744fbe080d64f1cc2 --- libc/Android.mk | 1 - libc/stdio/findfp.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libc/Android.mk b/libc/Android.mk index 694c64228..d0441456e 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -784,7 +784,6 @@ endif LOCAL_CFLAGS := \ $(libc_common_cflags) \ - -Wno-missing-field-initializers \ -Wno-sign-compare \ -Wno-uninitialized \ -Wno-unused-parameter \ diff --git a/libc/stdio/findfp.c b/libc/stdio/findfp.c index 35d028e14..ef8e9e64f 100644 --- a/libc/stdio/findfp.c +++ b/libc/stdio/findfp.c @@ -49,8 +49,8 @@ int __sdidinit; #define NDYNAMIC 10 /* add ten more whenever necessary */ #define std(flags, file) \ - {0,0,0,flags,file,{0},0,__sF+file,__sclose,__sread,__sseek,__swrite, \ - {(unsigned char *)(__sFext+file), 0},NULL,0,{0},{0},{0},0,0} + {0,0,0,flags,file,{0,0},0,__sF+file,__sclose,__sread,__sseek,__swrite, \ + {(unsigned char *)(__sFext+file), 0},NULL,0,{0},{0},{0,0},0,0} /* the usual - (stdin + stdout + stderr) */ static FILE usual[FOPEN_MAX - 3];