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

warning: unused parameter size_i and size_j #55

Closed
kivadiu opened this issue Jul 30, 2018 · 0 comments
Closed

warning: unused parameter size_i and size_j #55

kivadiu opened this issue Jul 30, 2018 · 0 comments

Comments

@kivadiu
Copy link
Contributor

kivadiu commented Jul 30, 2018

This program:

#include <boost/numeric/ublas/functional.hpp>
int main() {
  return 0;
}

when compiled on linux x86_64 with clang++ 5.0.2 and boost 1.68.0 beta1 with the following command:
clang++ -o ublas.o -c -DNDEBUG -Wall -Wextra -std=c++14 -I/softs/lin64-clang-5.0.2/release/boost/include ublas.cpp
gives the following warnings:

In file included from ublas.cpp:1:
/softs/lin64-clang-5.0.2/release/boost/include/boost/numeric/ublas/functional.hpp:1673:57: warning: unused parameter 'size_i' [-Wunused-parameter]
        size_type upper_element (size_type i, size_type size_i, size_type j, size_type size_j) {
                                                        ^
/softs/lin64-clang-5.0.2/release/boost/include/boost/numeric/ublas/functional.hpp:1673:88: warning: unused parameter 'size_j' [-Wunused-parameter]
        size_type upper_element (size_type i, size_type size_i, size_type j, size_type size_j) {
                                                                                       ^
2 warnings generated.
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