Add BUILD_WERROR option
Adds a cmake BUILD_WERROR option to enable warnings as errors. This option is off by default. This change also cleans up a few more compiler warnings.
This commit is contained in:
parent
719b6b7deb
commit
3f615ad93e
6 changed files with 22 additions and 12 deletions
|
|
@ -6319,7 +6319,7 @@ yyreduce:
|
|||
if (!(parseContext.spvVersion.vulkan > 0 && parseContext.spvVersion.vulkanRelaxed))
|
||||
(yyvsp[-1].interm.function)->addParameter((yyvsp[0].interm).param);
|
||||
else
|
||||
parseContext.vkRelaxedRemapFunctionParameter((yyvsp[0].interm).loc, (yyvsp[-1].interm.function), (yyvsp[0].interm).param);
|
||||
parseContext.vkRelaxedRemapFunctionParameter((yyvsp[-1].interm.function), (yyvsp[0].interm).param);
|
||||
}
|
||||
else
|
||||
delete (yyvsp[0].interm).param.type;
|
||||
|
|
@ -6346,7 +6346,7 @@ yyreduce:
|
|||
if (!(parseContext.spvVersion.vulkan > 0 && parseContext.spvVersion.vulkanRelaxed))
|
||||
(yyvsp[-2].interm.function)->addParameter((yyvsp[0].interm).param);
|
||||
else
|
||||
parseContext.vkRelaxedRemapFunctionParameter((yyvsp[0].interm).loc, (yyvsp[-2].interm.function), (yyvsp[0].interm).param);
|
||||
parseContext.vkRelaxedRemapFunctionParameter((yyvsp[-2].interm.function), (yyvsp[0].interm).param);
|
||||
}
|
||||
}
|
||||
#line 6353 "MachineIndependent/glslang_tab.cpp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue