d3dcompiler: Make some string arrays const.

This commit is contained in:
Henri Verbeet 2014-05-02 12:50:18 +02:00 committed by Alexandre Julliard
parent 4d887292af
commit ffc01ec648
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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[] =
{
"~",
"!",