mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests/gem_pwrite_snooped: disable const cast warning
Disable -Wcast-qual temporarily to allow memchr_inv to return non-const data (similar to memchr), without causing a compiler warning. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
84cfa9e4d2
commit
b04691b3e8
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user