mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Fix some compiler warnings on arm
This commit is contained in:
parent
df5721ff47
commit
ab3a6d3441
3 changed files with 8 additions and 8 deletions
|
|
@ -325,7 +325,7 @@ static VkShaderModule createShaderModule(struct vulkan_state *s, const char* sha
|
|||
|
||||
if ((fd = open(shaderFile, 0, O_RDONLY)) == -1) {
|
||||
spa_log_error(s->log, "can't open %s: %m", shaderFile);
|
||||
return NULL;
|
||||
return VK_NULL_HANDLE;
|
||||
}
|
||||
fstat(fd, &stat);
|
||||
|
||||
|
|
@ -344,7 +344,7 @@ static VkShaderModule createShaderModule(struct vulkan_state *s, const char* sha
|
|||
|
||||
if (result != VK_SUCCESS) {
|
||||
spa_log_error(s->log, "can't create shader %s: %m", shaderFile);
|
||||
return NULL;
|
||||
return VK_NULL_HANDLE;
|
||||
}
|
||||
return shaderModule;
|
||||
}
|
||||
|
|
@ -369,7 +369,7 @@ static int createComputePipeline(struct vulkan_state *s, const char *shader_file
|
|||
&s->pipelineLayout));
|
||||
|
||||
s->computeShaderModule = createShaderModule(s, shader_file);
|
||||
if (s->computeShaderModule == NULL)
|
||||
if (s->computeShaderModule == VK_NULL_HANDLE)
|
||||
return -ENOENT;
|
||||
|
||||
VkPipelineShaderStageCreateInfo shaderStageCreateInfo = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue