diff options
author | Jon Medhurst | 2012-05-14 05:23:23 -0500 |
---|---|---|
committer | Jon Medhurst | 2012-05-16 08:23:09 -0500 |
commit | 401972d0edd099668c8ea86bb6db71c4067a2dfb (patch) | |
tree | 0d56e46ba2cd84e5abcdcedf4b1f634389aee0ab /driver | |
parent | 2e0798b1b58f31f609375a9308a23d04d1126bea (diff) | |
download | arm-ds5-gator-401972d0edd099668c8ea86bb6db71c4067a2dfb.tar.gz arm-ds5-gator-401972d0edd099668c8ea86bb6db71c4067a2dfb.tar.xz arm-ds5-gator-401972d0edd099668c8ea86bb6db71c4067a2dfb.zip |
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 'driver')
0 files changed, 0 insertions, 0 deletions