Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused variables warnings #3

Closed
slayoo opened this issue Jul 15, 2019 · 0 comments
Closed

unused variables warnings #3

slayoo opened this issue Jul 15, 2019 · 0 comments

Comments

@slayoo
Copy link

slayoo commented Jul 15, 2019

Scanning dependencies of target gtest
[ 25%] Building CXX object googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 50%] Linking CXX static library ../../lib/libgtest.a
[ 50%] Built target gtest
Scanning dependencies of target test_all
[ 75%] Building CXX object test/CMakeFiles/test_all.dir/test_all.cpp.o
In file included from /home/slayoo/devel/wdm/include/wdm.hpp:11,
                 from /home/slayoo/devel/wdm/test/test_all.cpp:10:
/home/slayoo/devel/wdm/include/wdm/prho.hpp: In function ‘double wdm::impl::prho(std::vector<double>, std::vector<double>, std::vector<double>)’:
/home/slayoo/devel/wdm/include/wdm/prho.hpp:45:45: warning: unused variable ‘wi_sq’ [-Wunused-variable]
     double v_x = 0.0, v_y = 0.0, cov = 0.0, wi_sq;
                                             ^~~~~
/home/slayoo/devel/wdm/test/test_all.cpp: In function ‘int main(int, char**)’:
/home/slayoo/devel/wdm/test/test_all.cpp:13:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
 int main(int argc, char **argv) {
          ~~~~^~~~
/home/slayoo/devel/wdm/test/test_all.cpp:13:27: warning: unused parameter ‘argv’ [-Wunused-parameter]
 int main(int argc, char **argv) {
                    ~~~~~~~^~~~

@tvatter tvatter mentioned this issue May 5, 2020
@tvatter tvatter closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants