pytorch/test/cpp
Nikita Shulga a6280ab653 Compile without -Wno-unused-variable (#65954)
Summary:
Delete `-Wno-unused-variable` from top level `CMakeLists.txt`
Still suppress those warnings for tests and `torch_python`

Delete number of unused variables from caffe2 code
Use `(void)var;` to suppress unused variable in range loops
Use `C10_UNUSED` for global constructors and use `constexpr` instead of `static` for global constants

Pull Request resolved: https://github.com/pytorch/pytorch/pull/65954

Reviewed By: ngimel

Differential Revision: D31326599

Pulled By: malfet

fbshipit-source-id: 924155f1257a2ba1896c50512f615e45ca1f61f3
2021-10-01 17:40:47 -07:00
..
api Compile without -Wno-unused-variable (#65954) 2021-10-01 17:40:47 -07:00
c10d Revert D31005792: [NCCL] Init dummy NCCL comms in constructor 2021-09-29 20:46:38 -07:00
common
dist_autograd Fix distributed autograd gradients synchronization (#57792) 2021-05-09 17:32:59 -07:00
jit Compile without -Wno-unused-variable (#65954) 2021-10-01 17:40:47 -07:00
lite_interpreter_runtime [Pytorch Edge] Enable kineto profiler on mobile via EdgeKinetoProfiler (#62419) 2021-08-13 21:40:19 -07:00
rpc Remove process_group_agent and faulty_process_group_agent files (#62985) 2021-08-10 15:57:39 -07:00
tensorexpr Compile without -Wno-unused-variable (#65954) 2021-10-01 17:40:47 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00