intel/compiler: silence -Wclass-memaccess warnings
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -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 ®) :
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user