[lwip] Fix build with ccache
When building with ccache and -Werror option imposed by fuchsia BUILD.gn
results in error due to -Wparentheses-equality and -Wpointer-bool-conversion
caused by the way ccache treats macro expansions.
Any future warning causing build to fail could be easily added.
Change-Id: Ib051a4627bf913fe61db63839e5d7e7076863053
diff --git a/BUILD.gn b/BUILD.gn
index 7c12f05..2e4ed0f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -9,6 +9,14 @@
]
}
+config("lwip_ccache_warnings") {
+ #Add any warning that need to be suppressed to build with ccache for fuchsia here
+ cflags = [
+ "-Wno-parentheses-equality",
+ "-Wno-pointer-bool-conversion",
+ ]
+}
+
static_library("lwip") {
sources = [
"ports/fuchsia/sys_arch.c",
@@ -59,6 +67,7 @@
]
public_configs = [ ":lwip_config" ]
+ configs += [":lwip_ccache_warnings"]
if (is_debug) {
sources += [