Cleanup warnings of -Wmissing-declarations

Add static to the functions which is not intentionally
export to big scope.
This commit is contained in:
Jun Su
2020-03-23 15:59:19 +08:00
parent 62707986b7
commit b6ff15c130
3 changed files with 7 additions and 5 deletions

View File

@ -107,8 +107,10 @@ static const char SUBGROUP_HELPER_HEADER[] = R"(
#define SUBGROUP_MAX(value) value = subgroupMax(value)
)";
std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage, const char* stage_filename,
std::string_view source, std::string_view header)
static std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage,
const char* stage_filename,
std::string_view source,
std::string_view header)
{
if (!InitializeGlslang())
return std::nullopt;