Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: source/i18n/decNumber.c

Issue 9420032: Take care of two Clang warnings. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/icu46/
Patch Set: final patch Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/colldata.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/decNumber.c
===================================================================
--- source/i18n/decNumber.c (revision 122360)
+++ source/i18n/decNumber.c (working copy)
@@ -1392,6 +1392,8 @@
/* fastpath in decLnOp. The final division is done to the requested */
/* precision. */
/* ------------------------------------------------------------------ */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Warray-bounds"
U_CAPI decNumber * U_EXPORT2 uprv_decNumberLog10(decNumber *res, const decNumber *rhs,
decContext *set) {
uInt status=0, ignore=0; /* status accumulators */
@@ -1527,6 +1529,7 @@
#endif
return res;
} /* decNumberLog10 */
+#pragma clang diagnostic pop
/* ------------------------------------------------------------------ */
/* decNumberMax -- compare two Numbers and return the maximum */
@@ -2800,6 +2803,8 @@
/* result setexp(approx, e div 2) % fix exponent */
/* end sqrt */
/* ------------------------------------------------------------------ */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Warray-bounds"
U_CAPI decNumber * U_EXPORT2 uprv_decNumberSquareRoot(decNumber *res, const decNumber *rhs,
decContext *set) {
decContext workset, approxset; /* work contexts */
@@ -3129,6 +3134,7 @@
#endif
return res;
} /* decNumberSquareRoot */
+#pragma clang diagnostic pop
/* ------------------------------------------------------------------ */
/* decNumberSubtract -- subtract two Numbers */
@@ -5584,6 +5590,8 @@
/* 5. The static buffers are larger than might be expected to allow */
/* for calls from decNumberPower. */
/* ------------------------------------------------------------------ */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Warray-bounds"
decNumber * decLnOp(decNumber *res, const decNumber *rhs,
decContext *set, uInt *status) {
uInt ignore=0; /* working status accumulator */
@@ -5805,6 +5813,7 @@
/* [status is handled by caller] */
return res;
} /* decLnOp */
+#pragma clang diagnostic pop
/* ------------------------------------------------------------------ */
/* decQuantizeOp -- force exponent to requested value */
« no previous file with comments | « source/i18n/colldata.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698