From b992bfcf337a1b5d807be27dcd1612efa86c9534 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Fri, 10 Apr 2015 09:06:12 -0700 Subject: [PATCH] Use -Wno-format-pedantic to disable overly aggressive format string warning. Bug: 20148343 The latest clang warns on "%p" being used with non-void pointer types, which would require a great deal of cleanup in several sub-projects. Change-Id: I4175d5cf8709504455067c906a2eb8ccc8e25432 --- core/clang/config.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/clang/config.mk b/core/clang/config.mk index 13a5ba13f..3bc7b56ff 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -49,6 +49,11 @@ CLANG_CONFIG_EXTRA_CFLAGS += \ CLANG_CONFIG_EXTRA_CFLAGS += \ -Wno-reserved-id-macro +# Disable overly aggressive warning for format strings. +# Bug: 20148343 +CLANG_CONFIG_EXTRA_CFLAGS += \ + -Wno-format-pedantic + # Workaround for ccache with clang. # See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html. CLANG_CONFIG_EXTRA_CFLAGS += \