summaryrefslogtreecommitdiff
path: root/lib/igt_core.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-11-30 19:37:37 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-12-01 09:29:40 +0000
commitdc3fcd99e96f6714b5bd4614d8aeb113816d7ba9 (patch)
treee025b8e0e018f183465518a01275cad89c7c29fd /lib/igt_core.c
parentd20b870eed83addf4735fd6deaaf9b3cfa0b457d (diff)
Silence a bunch of "const discard" warnings
A few warnings of the form: gem_mmap_gtt.c: In function ‘copy_wc_page’: gem_mmap_gtt.c:480:16: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] __m128i *S = (const __m128i *)src; are no more. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_core.c')
-rw-r--r--lib/igt_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index f64c809a..a18a728c 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1154,14 +1154,14 @@ xprintfmt(const char *fmt, va_list ap)
unsigned long long num;
while (1) {
- while ((ch = *(unsigned char *) fmt++) != '%') {
+ while ((ch = *(const unsigned char *) fmt++) != '%') {
if (ch == '\0') {
return;
}
xputch(ch);
}
- ch = *(unsigned char *) fmt++;
+ ch = *(const unsigned char *) fmt++;
switch (ch) {
/* character */
case 'c':