Closed kks32 closed 4 years ago
@kks32 I have a similar warning in my compiler. You want me to help you clean this up? We also have one deprecated message from TBB. But I am assuming we are moving to OMP soon, so we'll just keep it?
In file included from /home/bchandra/Data/Program/CB-Geo/mpm/src/main.cc:8:
/usr/include/tbb/task_scheduler_init.h:21:154: note: #pragma message: TBB Warning: tbb/task_scheduler_init.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.
21 | #pragma message("TBB Warning: tbb/task_scheduler_init.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
| ^
@kks32 I checked this. I am not sure the unused-variables list that they suggested are all appropriate. There are some variables which they note as unused, but actually used. I prefer to add the following flag when you compile: -DCMAKE_CXX_FLAGS="Wunused-variable"
I made some modifications and will make a PR on it soon.
Describe the bug Static analysis errors from fbinfer (https://fbinfer.com)
To Reproduce Steps to reproduce the behavior, run static analysis tool fbinfer.
cmake -DCMAKE_BUILD_TYPE=Release -DKAHIP_ROOT=~/workspace/KaHIP/ -DCMAKE_EXPORT_COMPILE_COMMANDS=On ..
infer capture --compilation-database compile_commands.json
infer analyze
Additional context