glslcompiler: Fix GCC warn_unused_result warning.
This commit is contained in:
@@ -401,8 +401,12 @@ main(int argc, char *argv[])
|
||||
|
||||
if (v_shader || f_shader || g_shader) {
|
||||
if (Options.OutputFile) {
|
||||
FILE *f;
|
||||
fclose(stdout);
|
||||
/*stdout =*/ freopen(Options.OutputFile, "w", stdout);
|
||||
/*stdout =*/ f = freopen(Options.OutputFile, "w", stdout);
|
||||
if (!f) {
|
||||
fprintf(stderr, "freopen error\n");
|
||||
}
|
||||
}
|
||||
if (stdout && v_shader) {
|
||||
PrintShaderInstructions(v_shader, stdout);
|
||||
|
||||
Reference in New Issue
Block a user