From 338d1e7f330dd39aa4f23eeda1a5ffe979ba3b76 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Tue, 17 Jun 2014 14:36:05 -0700 Subject: [PATCH] Help catch common 32/64-bit errors. (cherry picked from commit cf5ea762e015bc044d251814d9062ef1df4dd49f) Change-Id: I43eb93d41967c63acb0723083c0178019f1364d0 --- core/clang/config.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/clang/config.mk b/core/clang/config.mk index e751d7914e..f50a0cb1ad 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -24,9 +24,13 @@ CLANG_CONFIG_EXTRA_CFLAGS := CLANG_CONFIG_EXTRA_CPPFLAGS := CLANG_CONFIG_EXTRA_LDFLAGS := -CLANG_CONFIG_EXTRA_CFLAGS := \ +CLANG_CONFIG_EXTRA_CFLAGS += \ -D__compiler_offsetof=__builtin_offsetof +# Help catch common 32/64-bit errors. +CLANG_CONFIG_EXTRA_CFLAGS += \ + -Werror=int-conversion + CLANG_CONFIG_UNKNOWN_CFLAGS := \ -funswitch-loops \ -fno-tree-sra \