зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1012218 - Cherrypick clang warning fixes from upstream harfbuzz. r=jfkthame
This commit is contained in:
Родитель
84e89d2fa5
Коммит
591364d52b
|
@ -234,6 +234,7 @@ struct hb_language_item_t {
|
|||
|
||||
static hb_language_item_t *langs;
|
||||
|
||||
#ifdef HAVE_ATEXIT
|
||||
static inline
|
||||
void free_langs (void)
|
||||
{
|
||||
|
@ -244,6 +245,7 @@ void free_langs (void)
|
|||
langs = next;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static hb_language_item_t *
|
||||
lang_find_or_insert (const char *key)
|
||||
|
|
|
@ -219,7 +219,7 @@ _hb_popcount32 (uint32_t mask)
|
|||
return __builtin_popcount (mask);
|
||||
#else
|
||||
/* "HACKMEM 169" */
|
||||
register uint32_t y;
|
||||
uint32_t y;
|
||||
y = (mask >> 1) &033333333333;
|
||||
y = mask - y - ((y >>1) & 033333333333);
|
||||
return (((y + (y >> 3)) & 030707070707) % 077);
|
||||
|
@ -233,7 +233,7 @@ _hb_bit_storage (unsigned int number)
|
|||
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
|
||||
return likely (number) ? (sizeof (unsigned int) * 8 - __builtin_clz (number)) : 0;
|
||||
#else
|
||||
register unsigned int n_bits = 0;
|
||||
unsigned int n_bits = 0;
|
||||
while (number) {
|
||||
n_bits++;
|
||||
number >>= 1;
|
||||
|
@ -249,7 +249,7 @@ _hb_ctz (unsigned int number)
|
|||
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
|
||||
return likely (number) ? __builtin_ctz (number) : 0;
|
||||
#else
|
||||
register unsigned int n_bits = 0;
|
||||
unsigned int n_bits = 0;
|
||||
if (unlikely (!number)) return 0;
|
||||
while (!(number & 1)) {
|
||||
n_bits++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче