Cleanup: compiler warnings

This commit is contained in:
2022-09-23 14:33:41 +10:00
parent e9344d329f
commit cda2dc721d
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ static void drw_deferred_shader_compilation_exec(
BLI_spin_lock(&comp->list_lock);
/* Pop tail because it will be less likely to lock the main thread
* if all GPUMaterials are to be freed (see DRW_deferred_shader_remove()). */
LinkData *link = (LinkData *)BLI_poptail(&comp->optimize_queue);
link = (LinkData *)BLI_poptail(&comp->optimize_queue);
GPUMaterial *optimize_mat = link ? (GPUMaterial *)link->data : NULL;
if (optimize_mat) {
/* Avoid another thread freeing the material during optimization. */

View File

@@ -61,7 +61,7 @@ class GLBackend : public GPUBackend {
GLTexture::samplers_update();
};
Context *context_alloc(void *ghost_window, void *ghost_context) override
Context *context_alloc(void *ghost_window, void * /*ghost_context*/) override
{
return new GLContext(ghost_window, shared_orphan_list_);
};