mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-13 17:30:32 +01:00
mesa: init dst values in COPY_CLEAN_4V_TYPE_AS_FLOAT()
to silence gcc 4.8.1 warnings. And improve the ASSERT(0) call. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
f91f6ef739
commit
ef47ab520d
1 changed files with 2 additions and 1 deletions
|
|
@ -607,7 +607,8 @@ COPY_CLEAN_4V_TYPE_AS_FLOAT(GLfloat dst[4], int sz, const GLfloat src[4],
|
|||
UINT_AS_FLT(0), UINT_AS_FLT(1));
|
||||
break;
|
||||
default:
|
||||
ASSERT(0);
|
||||
ASSIGN_4V(dst, 0.0f, 0.0f, 0.0f, 1.0f); /* silence warnings */
|
||||
ASSERT(!"Unexpected type in COPY_CLEAN_4V_TYPE_AS_FLOAT macro");
|
||||
}
|
||||
COPY_SZ_4V(dst, sz, src);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue