From 7201b48d6258a267088e28276d3ee9cbf48a7e7a Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Wed, 20 Apr 2016 18:28:29 +0800 Subject: Android.mK: fix compiling error with clang To fix the problem below about __DATE__: external/powertop/src/main.cpp:103:65: error: expansion of date or time macro is not reproducible [-Werror,-Wdate-time] printf(_("PowerTOP version " POWERTOP_VERSION ", compiled on " __DATE__ "\n")); Change-Id: I38d94994ccb07a22df01bd378d31c357f50e0b51 Signed-off-by: Yongqin Liu --- Android.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Android.mk b/Android.mk index 219980f..1d12f1a 100644 --- a/Android.mk +++ b/Android.mk @@ -15,6 +15,8 @@ LOCAL_MODULE := powertop LOCAL_CFLAGS += -fexceptions -DHAVE_LIBNL20 LOCAL_CPPFLAGS += -DPACKAGE_VERSION=\"2.8\" -DPACKAGE=powertop -DHAVE_LIBNL20 -DHAVE_NO_PCI +LOCAL_CFLAGS += -Wno-error=date-time + LOCAL_C_INCLUDES += bionic external/libnl/include/ # ncurses -- cgit v1.2.3