| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
cc @nodejs/testing |
Sorry, something went wrong.
|
The USE macro doesn't work in this context? See Line 467 in a45a404 |
Sorry, something went wrong.
|
@targos thanks for mentioning that. I actually tried (void) <the-FILE*> and it still produced the warning. The ! seems to be necessary. I'm not quite sure how I'm supposed to include the header though given that none of the tests use USE. Do I hardcode deps/v8/src/base/macros.h in? |
Sorry, something went wrong.
|
Sorry, it's not a macro for us. The function is defined in src/util.h. You can use it like this: node::USE(...) |
Sorry, something went wrong.
|
@targos thanks, now the warning is gone. :) |
Sorry, something went wrong.
warning log:
../test/cctest/test_environment.cc: In constructor ‘RedirectStdErr::RedirectStdErr(const char*)’:
../test/cctest/test_environment.cc:77:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(filename_, "w", stderr);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
There was a problem hiding this comment.
RSLGTM
Sorry, something went wrong.
Sorry, something went wrong.
```
warning log:
../test/cctest/test_environment.cc: In constructor \
‘RedirectStdErr::RedirectStdErr(const char*)’:
../test/cctest/test_environment.cc:77:12: warning: \
ignoring return value of ‘FILE* freopen(const char*, \
const char*, FILE*)’, declared with attribute
warn_unused_result [-Wunused-result]
freopen(filename_, "w", stderr);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
```
PR-URL: #36846
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
```
warning log:
../test/cctest/test_environment.cc: In constructor \
‘RedirectStdErr::RedirectStdErr(const char*)’:
../test/cctest/test_environment.cc:77:12: warning: \
ignoring return value of ‘FILE* freopen(const char*, \
const char*, FILE*)’, declared with attribute
warn_unused_result [-Wunused-result]
freopen(filename_, "w", stderr);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
```
PR-URL: #36846
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
```
warning log:
../test/cctest/test_environment.cc: In constructor \
‘RedirectStdErr::RedirectStdErr(const char*)’:
../test/cctest/test_environment.cc:77:12: warning: \
ignoring return value of ‘FILE* freopen(const char*, \
const char*, FILE*)’, declared with attribute
warn_unused_result [-Wunused-result]
freopen(filename_, "w", stderr);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
```
PR-URL: #36846
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
```
warning log:
../test/cctest/test_environment.cc: In constructor \
‘RedirectStdErr::RedirectStdErr(const char*)’:
../test/cctest/test_environment.cc:77:12: warning: \
ignoring return value of ‘FILE* freopen(const char*, \
const char*, FILE*)’, declared with attribute
warn_unused_result [-Wunused-result]
freopen(filename_, "w", stderr);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
```
PR-URL: #36846
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
warning log: