From 9ef5195ca6792f20e2d22c67f36f49f957275111 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 6 Nov 2011 10:38:52 -0500 Subject: [PATCH] Minor changes to avoid compiler warnings from clang++ --- dlib/matrix/matrix_expressions.h | 4 ++-- dlib/svm/sparse_kernel.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlib/matrix/matrix_expressions.h b/dlib/matrix/matrix_expressions.h index 4937e8dca..4442ce258 100644 --- a/dlib/matrix/matrix_expressions.h +++ b/dlib/matrix/matrix_expressions.h @@ -256,12 +256,12 @@ namespace dlib template bool aliases ( - const matrix_exp& item + const matrix_exp& ) const { return false; } template bool destructively_aliases ( - const matrix_exp& item + const matrix_exp& ) const { return false; } long nr ( diff --git a/dlib/svm/sparse_kernel.h b/dlib/svm/sparse_kernel.h index 0df4f5f0d..ec37fca22 100644 --- a/dlib/svm/sparse_kernel.h +++ b/dlib/svm/sparse_kernel.h @@ -299,16 +299,16 @@ namespace dlib typename T > void serialize ( - const sparse_linear_kernel& item, - std::ostream& out + const sparse_linear_kernel& , + std::ostream& ){} template < typename T > void deserialize ( - sparse_linear_kernel& item, - std::istream& in + sparse_linear_kernel& , + std::istream& ){} // ---------------------------------------------------------------------------------------- @@ -362,16 +362,16 @@ namespace dlib typename T > void serialize ( - const sparse_histogram_intersection_kernel& item, - std::ostream& out + const sparse_histogram_intersection_kernel& , + std::ostream& ){} template < typename T > void deserialize ( - sparse_histogram_intersection_kernel& item, - std::istream& in + sparse_histogram_intersection_kernel& , + std::istream& ){} // ----------------------------------------------------------------------------------------