summaryrefslogtreecommitdiff
path: root/assembler/brw_context.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2021-01-31 10:22:47 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2021-02-01 15:29:40 +0000
commitccfc101419c1e233f87ca509781c5f8e09a2f3ae (patch)
treef56bb91312474ec8bf430e6230c2e84d4143575f /assembler/brw_context.h
parentdda93ce17e3d0e025b5e9aa83271438cc41ff734 (diff)
assembler: Fix or suppress clang warnings
For the simple assigment of constant strings to a char*, fix the type. For the autogenerated bison output, tell gcc/clang to ignore the warnings. v2: When in doubt disable the warning generated by the bison output Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'assembler/brw_context.h')
-rw-r--r--assembler/brw_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler/brw_context.h b/assembler/brw_context.h
index 90e66f71..335234e3 100644
--- a/assembler/brw_context.h
+++ b/assembler/brw_context.h
@@ -62,7 +62,7 @@ brw_init_context(struct brw_context *brw, int gen);
/* brw_disasm.c */
struct opcode_desc {
- char *name;
+ const char *name;
int nsrc;
int ndst;
};