freedreno/decode: warnings cleanup

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6070>
This commit is contained in:
Rob Clark 2020-07-24 14:14:09 -07:00 committed by Marge Bot
parent cbbaafdf72
commit 5125b4bc69
2 changed files with 2 additions and 2 deletions

View file

@ -560,7 +560,8 @@ static void print_cf(instr_cf_t *cf, int level)
{
printf("%s", levels[level]);
if (debug & PRINT_RAW) {
uint16_t *words = (uint16_t *)cf;
uint16_t words[3];
memcpy(&words, cf, sizeof(words));
printf(" %04x %04x %04x \t",
words[0], words[1], words[2]);
}

View file

@ -26,7 +26,6 @@
* Rob Clark <robclark@freedesktop.org>
*/
#define _GNU_SOURCE
#define LUA_COMPAT_APIINTCASTS
#include <stdio.h>