Clear waring in tests and benchmarks.

Joaquim Duran <[email protected]>
Newsgroups gmane.comp.lib.boost.ublas
Message-ID <CANdawSH7xXy7F5xPqkcLVMZSN3h1JAPtAQqxp6dX=5Nxk_s1YQ@mail.gmail.com>
I would like to clear some warning that appears when compiling the
tests and benchmarks and improve code organization:

1 - add a macro named NOT_USED (in utils.hpp) to mark tell to the
compiler that a variable that has been assigned a value, it 'll not be
used.

#define NOT_USED(x) (void)(x)

matrix m, a, b;
m = a * b;
NOT_USED(m);

NOTE: some tests already avoid this warning.

2 - Remove unused parameters, specially to 'main' functions.

3 - Three tests uses the template function mean_square. This function
could be placed to a header file.

Joaquim Duran
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.