Skip to content

Commit

Permalink
Fixed unused warning if in fortification mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed May 5, 2015
1 parent f310fe3 commit 1f418d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/OptionsTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ void setUpDisableStdErr()
{
fflush(stderr);
origStdErr = dup(STDERR_FILENO);
freopen("NUL", "a", stderr);
FILE* unused = freopen("NUL", "a", stderr);
(void) unused;
}

void tearDownResetStdErr()
Expand Down

0 comments on commit 1f418d0

Please sign in to comment.