Title: [275646] trunk/Source/WTF
Revision
275646
Author
[email protected]
Date
2021-04-07 16:49:40 -0700 (Wed, 07 Apr 2021)

Log Message

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

Patch by Michael Catanzaro <[email protected]> on 2021-04-07
Reviewed by Don Olmstead.

Suppress this warning.

* wtf/Bitmap.h:
(WTF::WordType>::clear):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (275645 => 275646)


--- trunk/Source/WTF/ChangeLog	2021-04-07 23:35:06 UTC (rev 275645)
+++ trunk/Source/WTF/ChangeLog	2021-04-07 23:49:40 UTC (rev 275646)
@@ -1,3 +1,15 @@
+2021-04-07  Michael Catanzaro  <[email protected]>
+
+        Suppress -Warray-bounds warning spam in Bitmap.h
+        https://bugs.webkit.org/show_bug.cgi?id=224207
+
+        Reviewed by Don Olmstead.
+
+        Suppress this warning.
+
+        * wtf/Bitmap.h:
+        (WTF::WordType>::clear):
+
 2021-04-07  Yusuke Suzuki  <[email protected]>
 
         [JSC] Use FixedVector more in bytecode dir and JumpTable

Modified: trunk/Source/WTF/wtf/Bitmap.h (275645 => 275646)


--- trunk/Source/WTF/wtf/Bitmap.h	2021-04-07 23:35:06 UTC (rev 275645)
+++ trunk/Source/WTF/wtf/Bitmap.h	2021-04-07 23:49:40 UTC (rev 275646)
@@ -226,7 +226,9 @@
 template<size_t bitmapSize, typename WordType>
 inline void Bitmap<bitmapSize, WordType>::clear(size_t n)
 {
+IGNORE_WARNINGS_BEGIN("array-bounds")
     bits[n / wordSize] &= ~(one << (n % wordSize));
+IGNORE_WARNINGS_END
 }
 
 template<size_t bitmapSize, typename WordType>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to