We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98369aa commit 8d49ce9Copy full SHA for 8d49ce9
test/cctest/test_environment.cc
@@ -1,6 +1,7 @@
1
#include "node_buffer.h"
2
#include "node_internals.h"
3
#include "libplatform/libplatform.h"
4
+#include "util.h"
5
6
#include <string>
7
#include "gtest/gtest.h"
@@ -10,6 +11,7 @@
10
11
12
using node::AtExit;
13
using node::RunAtExit;
14
+using node::USE;
15
16
static bool called_cb_1 = false;
17
static bool called_cb_2 = false;
@@ -74,7 +76,7 @@ class RedirectStdErr {
74
76
fflush(stderr);
75
77
fgetpos(stderr, &pos_);
78
fd_ = dup(fileno(stderr));
- freopen(filename_, "w", stderr);
79
+ USE(freopen(filename_, "w", stderr));
80
}
81
82
~RedirectStdErr() {
0 commit comments