diff options
-rw-r--r-- | tests/gem_pwrite_snooped.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gem_pwrite_snooped.c b/tests/gem_pwrite_snooped.c index d3f6223e..3bc4bad1 100644 --- a/tests/gem_pwrite_snooped.c +++ b/tests/gem_pwrite_snooped.c @@ -83,7 +83,10 @@ static void *memchr_inv(const void *s, int c, size_t n) while (n--) { if (*us != uc) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" return (void *) us; +#pragma GCC diagnostic pop us++; } |