summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-12-12 18:56:37 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-12-12 20:02:16 +0000
commit866a6f2c41da8505cf868a9d83301cddd41cc9fb (patch)
treed8b87a361c0a63bc9a36835f4ed9e738aa7dc191 /tests
parent2d08e9e9a1fd05b0d7bf824f3ca98de820c7d615 (diff)
tests/gem_pread,gem_pwrite: Fix compiler warnings
Many warnings of the form gem_pread.c: In function ‘main’: gem_pread.c:128:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] bps = bytes_per_sec(buf, object_size/usecs*1e6); Regression from commit 48c945322b4c5f6443758143cccb9c4c04da4aaa Author: Ankitprasad Sharma <ankitprasad.r.sharma@intel.com> Date: Wed Dec 2 14:54:51 2015 +0530 igt/gem_pread: Support to verify pread/pwrite for non-shmem backed obj Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_pread.c2
-rw-r--r--tests/gem_pwrite.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_pread.c b/tests/gem_pread.c
index d1ef384c..afa072d3 100644
--- a/tests/gem_pread.c
+++ b/tests/gem_pread.c
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
int object_size = 0;
double usecs;
char buf[100];
- char* bps;
+ const char* bps;
const struct {
int level;
const char *name;
diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c
index 6e298204..cbb7b032 100644
--- a/tests/gem_pwrite.c
+++ b/tests/gem_pwrite.c
@@ -139,7 +139,7 @@ int main(int argc, char **argv)
{
int object_size = 0;
double usecs;
- char* bps;
+ const char* bps;
char buf[100];
int count;
const struct {