mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
glslcompiler: Fix GCC warn_unused_result warning.
This commit is contained in:
parent
16def30870
commit
0c767b9ae6
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue