From 14ce5ab0b7ae012c6e46511bab399c472eb39eb2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 6 Dec 2019 03:54:46 +0000 Subject: [PATCH] First try at fixing build errors --- src/hb-algs.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index e97f94358..0ccf9c80c 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -651,7 +651,10 @@ hb_bsearch_impl (V** out, while (min <= max) { int mid = ((unsigned int) min + (unsigned int) max) / 2; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-align" V* p = (V*) (((const char *) base) + (mid * stride)); +#pragma GCC diagnostic pop int c = compar ((const void *) &key, (const void *) p, ds...); if (c < 0) max = mid - 1;