diff options
| author | 2013-12-13 07:27:41 +0000 | |
|---|---|---|
| committer | 2013-12-13 07:27:41 +0000 | |
| commit | b90d8591343e1af176ff181e6bb343f739c037a6 (patch) | |
| tree | 634146b150a79613a71fa81b051bdce805725257 | |
| parent | 2d7316d72d3aacf70b0ad2a51b3bdc53d1c025b3 (diff) | |
| parent | 13b648ebff99a3fb8c26152745d294a55f8c11b7 (diff) | |
am 13b648eb: am 584ace0d: Merge "Fix one and hide the other warnings from core/jni"
* commit '13b648ebff99a3fb8c26152745d294a55f8c11b7':
Fix one and hide the other warnings from core/jni
| -rw-r--r-- | core/jni/Android.mk | 3 | ||||
| -rw-r--r-- | core/jni/com_android_internal_net_NetworkStatsFactory.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/jni/Android.mk b/core/jni/Android.mk index 19585843f597..2e0acb131a79 100644 --- a/core/jni/Android.mk +++ b/core/jni/Android.mk @@ -4,6 +4,9 @@ include $(CLEAR_VARS) LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL LOCAL_CFLAGS += -U__APPLE__ +LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast +LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses +LOCAL_CPPFLAGS += -Wno-conversion-null ifeq ($(TARGET_ARCH), arm) LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))" diff --git a/core/jni/com_android_internal_net_NetworkStatsFactory.cpp b/core/jni/com_android_internal_net_NetworkStatsFactory.cpp index ec19f0ab38bc..0b9ad9b39e80 100644 --- a/core/jni/com_android_internal_net_NetworkStatsFactory.cpp +++ b/core/jni/com_android_internal_net_NetworkStatsFactory.cpp @@ -80,7 +80,7 @@ static int readNetworkStatsDetail(JNIEnv* env, jclass clazz, jobject stats, stats_line s; int64_t rawTag; if (sscanf(buffer, "%d %31s 0x%llx %u %u %llu %llu %llu %llu", &s.idx, - &s.iface, &rawTag, &s.uid, &s.set, &s.rxBytes, &s.rxPackets, + s.iface, &rawTag, &s.uid, &s.set, &s.rxBytes, &s.rxPackets, &s.txBytes, &s.txPackets) == 9) { if (s.idx != lastIdx + 1) { ALOGE("inconsistent idx=%d after lastIdx=%d", s.idx, lastIdx); |