Make the patch work with gcc-10 as well

This commit is contained in:
Jeff Law 2020-11-15 09:33:45 -07:00
parent 2f2fa40ea7
commit 41e5efd7ad

View File

@ -7,7 +7,7 @@ index da09a1c..4d6343f 100644
static void StackLowerThanAddress(const void* ptr, bool* result) {
int dummy;
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpointer-compare="
+#pragma GCC diagnostic ignored "-Wpointer-compare"
*result = (&dummy < ptr);
+#pragma GCC diagnostic push
}