DescriptionTake care of two Clang warnings.
- decNumber.c has several places where Clang complains about array index
out-of-bounds error. According to udecnum.h, it's done on purpose because
the array in question (lsu) is followed by additional spaces for digits.
So, we suppress 'array-bounds' warning with clang-specific pragmas.
GCC 4.6 also complains about this, but it's hard to make GCC 4.4 and
GCC 4.6 happy at the same time without getting too ugly because GCC 4.4
does not support 'pragra diagnostic {push|pop}'
See http://bugs.icu-project.org/trac/ticket/8954
- colldata.cpp copies an array of UnicodeString's with memcpy. It's changed to
to use a for-loop, instead. The upstream ToT has fixed this.
BUG=84851, 92756
TEST=Compile with Clang and it does not complain any more in devNumber.c and colldata.cpp
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122423
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : #
Total comments: 1
Patch Set 4 : final patch #
Messages
Total messages: 4 (0 generated)
|