xenia-gpu mostly clang clean.

This commit is contained in:
Ben Vanik
2015-07-19 21:48:47 -07:00
parent 5bd7833e87
commit 2f1d49aa32
7 changed files with 35 additions and 40 deletions

View File

@@ -345,10 +345,10 @@ bool GL4Shader::CompileProgram(std::string source) {
// Note that we put the translated source first so we get good line numbers.
FILE* f = fopen(file_name, "w");
fprintf(f, translated_disassembly_.c_str());
fprintf(f, "%s", translated_disassembly_.c_str());
fprintf(f, "\n\n");
fprintf(f, "/*\n");
fprintf(f, ucode_disassembly_.c_str());
fprintf(f, "%s", ucode_disassembly_.c_str());
fprintf(f, " */\n");
fclose(f);
}
@@ -419,7 +419,7 @@ bool GL4Shader::CompileProgram(std::string source) {
if (disasm_start) {
FILE* f = fopen(file_name, "a");
fprintf(f, "\n\n/*\n");
fprintf(f, disasm_start);
fprintf(f, "%s", disasm_start);
fprintf(f, "\n*/\n");
fclose(f);
} else {