From c4ef5b4f6ba589e612a64259a3c49404dd4b0ace Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 11 Oct 2018 12:36:34 -0700 Subject: [PATCH] AOSP: Fix debugfs clang build. Signed-off-by: Theodore Ts'o Change-Id: Ic4de282039524e1858bbd288e2b85be30d843f40 From AOSP commit: 7e9e2ca4b08aab41b28e57d0c9b840b8b9e6466d --- debugfs/set_fields.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index e1e23a5..3cdf617 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -75,7 +75,7 @@ static errcode_t parse_gd_csum(struct field_set_info *info, char *field, char *a static errcode_t parse_mmp_clear(struct field_set_info *info, char *field, char *arg); -#if __GNUC_PREREQ (4, 6) +#if __GNUC_PREREQ (4, 6) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif -- 1.8.3.1