Fix strict compilation warnings

This commit is contained in:
Sergey Sharybin 2022-02-18 10:14:34 +01:00
parent fe26d18889
commit 8b4da9a191
2 changed files with 4 additions and 4 deletions

View File

@ -140,8 +140,8 @@ GLStencilTableSSBO::~GLStencilTableSSBO()
GLComputeEvaluator::GLComputeEvaluator() : _workGroupSize(64), _patchArraysSSBO(0)
{
memset(&_stencilKernel, 0, sizeof(_stencilKernel));
memset(&_patchKernel, 0, sizeof(_patchKernel));
memset((void *)&_stencilKernel, 0, sizeof(_stencilKernel));
memset((void *)&_patchKernel, 0, sizeof(_patchKernel));
}
GLComputeEvaluator::~GLComputeEvaluator()

View File

@ -1818,9 +1818,9 @@ static bool draw_subdiv_create_requested_buffers(const Scene *scene,
const float obmat[4][4],
const bool do_final,
const bool do_uvedit,
const bool use_subsurf_fdots,
const bool /*use_subsurf_fdots*/,
const ToolSettings *ts,
const bool use_hide,
const bool /*use_hide*/,
OpenSubdiv_EvaluatorCache *evaluator_cache)
{
SubsurfModifierData *smd = BKE_object_get_last_subsurf_modifier(ob);