Changeset 275646 in webkit


Ignore:
Timestamp:
Apr 7, 2021 4:49:40 PM (3 years ago)
Author:
commit-queue@webkit.org
Message:

Suppress -Warray-bounds warning spam in Bitmap.h
https://bugs.webkit.org/show_bug.cgi?id=224207

Patch by Michael Catanzaro <Michael Catanzaro> on 2021-04-07
Reviewed by Don Olmstead.

Suppress this warning.

  • wtf/Bitmap.h:

(WTF::WordType>::clear):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r275626 r275646  
     12021-04-07  Michael Catanzaro  <mcatanzaro@gnome.org>
     2
     3        Suppress -Warray-bounds warning spam in Bitmap.h
     4        https://bugs.webkit.org/show_bug.cgi?id=224207
     5
     6        Reviewed by Don Olmstead.
     7
     8        Suppress this warning.
     9
     10        * wtf/Bitmap.h:
     11        (WTF::WordType>::clear):
     12
    1132021-04-07  Yusuke Suzuki  <ysuzuki@apple.com>
    214
  • trunk/Source/WTF/wtf/Bitmap.h

    r265416 r275646  
    227227inline void Bitmap<bitmapSize, WordType>::clear(size_t n)
    228228{
     229IGNORE_WARNINGS_BEGIN("array-bounds")
    229230    bits[n / wordSize] &= ~(one << (n % wordSize));
     231IGNORE_WARNINGS_END
    230232}
    231233
Note: See TracChangeset for help on using the changeset viewer.