aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Clément Tosi <ptosi@google.com>2023-10-11 15:45:17 +0100
committerPierre-Clément Tosi <ptosi@google.com>2023-10-11 16:02:55 +0100
commit6c25e96cf6d6969d580f178e9e48f396249b50b8 (patch)
tree884c32b5af45a4e0d5cee9b0a5c3402935e07e05
parent824645385979cf00626c048fcc5443e7209af458 (diff)
downloaddtc-6c25e96cf6d6969d580f178e9e48f396249b50b8.tar.gz
ANDROID: Use -Wno-macro-redefined for DTC tools
As we use the flag when building libfdt, also enable it for the tools. Test: m dtc fdtget fdtoverlay Test: bazel build //:all Change-Id: I3c0775436bb9be1367e1937e99a6e87d1dce664c
-rw-r--r--Android.bp1
-rw-r--r--BUILD.bazel1
2 files changed, 2 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index cb13748..a194eef 100644
--- a/Android.bp
+++ b/Android.bp
@@ -48,6 +48,7 @@ cc_defaults {
cflags: [
"-Wall",
"-Werror",
+ "-Wno-macro-redefined",
"-Wno-sign-compare",
"-Wno-missing-field-initializers",
"-Wno-unused-parameter",
diff --git a/BUILD.bazel b/BUILD.bazel
index 439621d..5ef46e7 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -15,6 +15,7 @@ cc_library(
COPTS = [
"-Wall",
"-Werror",
+ "-Wno-macro-redefined",
"-Wno-sign-compare",
"-Wno-missing-field-initializers",
"-Wno-unused-parameter",