summaryrefslogtreecommitdiff
path: root/tools/gator/daemon/Android.mk
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2012-05-14 11:28:08 +0100
committerJon Medhurst <tixy@linaro.org>2012-05-21 12:51:32 +0100
commit324bba217d7e9d31aa5247f6963efbf36ed602f9 (patch)
treeab57ae96219cb0f07ae6d643f0bb37a679491ba2 /tools/gator/daemon/Android.mk
parent414f4a7dfb33723bebe44c1af79ddd395ff2412d (diff)
gator-daemon: Fix sequence-point compile error
In mxml/mxml-file.c in the expression: (getc(fp) << 8) | getc(fp) the C standard allows right-hand getc() to be called before left hand one, which would cause a bug. The compiler gives an warning about this and we are treating warnings as errors this breaks the build with: error: operation on 'fp->_r' may be undefined [-Werror=sequence-point] We can fix this by rewriting the expressions in two parts, however the code in question has licensing clauses for modified versions which have not yet been resolved. Therefore, for now, we will disable the problematic error in the makefiles. Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'tools/gator/daemon/Android.mk')
-rwxr-xr-xtools/gator/daemon/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gator/daemon/Android.mk b/tools/gator/daemon/Android.mk
index 3ab55b91ad5..715e5b62ba1 100755
--- a/tools/gator/daemon/Android.mk
+++ b/tools/gator/daemon/Android.mk
@@ -3,7 +3,7 @@ include $(CLEAR_VARS)
$(shell cd $(LOCAL_PATH);cat events_header.xml events-*\.xml events_footer.xml > events.xml;xxd -i events.xml > events_xml.h;xxd -i configuration.xml > configuration_xml.h)
-LOCAL_CFLAGS += -Wall -O3 -ftree-vectorize
+LOCAL_CFLAGS += -Wall -O3 -ftree-vectorize -Wno-error=sequence-point
LOCAL_SRC_FILES:= \
CapturedXML.cpp \