d3dcompiler: Make some string arrays const.
This commit is contained in:
parent
4d887292af
commit
ffc01ec648
|
@ -46,7 +46,7 @@ void hlsl_message(const char *fmt, ...)
|
|||
|
||||
static const char *hlsl_get_error_level_name(enum hlsl_error_level level)
|
||||
{
|
||||
const char *names[] =
|
||||
static const char * const names[] =
|
||||
{
|
||||
"error",
|
||||
"warning",
|
||||
|
@ -199,7 +199,7 @@ static void declare_predefined_types(struct hlsl_scope *scope)
|
|||
{
|
||||
struct hlsl_type *type;
|
||||
unsigned int x, y, bt;
|
||||
static const char *names[] =
|
||||
static const char * const names[] =
|
||||
{
|
||||
"float",
|
||||
"half",
|
||||
|
|
|
@ -1974,7 +1974,7 @@ const char *debug_modifiers(DWORD modifiers)
|
|||
|
||||
static const char *debug_node_type(enum hlsl_ir_node_type type)
|
||||
{
|
||||
const char *names[] =
|
||||
static const char * const names[] =
|
||||
{
|
||||
"HLSL_IR_VAR",
|
||||
"HLSL_IR_ASSIGNMENT",
|
||||
|
@ -2080,7 +2080,7 @@ static void debug_dump_ir_constant(const struct hlsl_ir_constant *constant)
|
|||
|
||||
static const char *debug_expr_op(const struct hlsl_ir_expr *expr)
|
||||
{
|
||||
static const char *op_names[] =
|
||||
static const char * const op_names[] =
|
||||
{
|
||||
"~",
|
||||
"!",
|
||||
|
|
Loading…
Reference in New Issue