intel/compiler: silence -Wclass-memaccess warnings

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2018-07-16 13:19:30 -07:00
parent ff8abce361
commit 7df5f62768
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ namespace brw {
void
src_reg::init()
{
memset(this, 0, sizeof(*this));
memset((void*)this, 0, sizeof(*this));
this->file = BAD_FILE;
this->type = BRW_REGISTER_TYPE_UD;
}
@@ -83,7 +83,7 @@ src_reg::src_reg(const dst_reg &reg) :
void
dst_reg::init()
{
memset(this, 0, sizeof(*this));
memset((void*)this, 0, sizeof(*this));
this->file = BAD_FILE;
this->type = BRW_REGISTER_TYPE_UD;
this->writemask = WRITEMASK_XYZW;