From bc0e12f2af38151d1df308f6f3ad430f802e9c9f Mon Sep 17 00:00:00 2001 From: Davis King Date: Fri, 23 Jul 2010 20:20:34 +0000 Subject: [PATCH] Changed code slightly to avoid a warning from gcc. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403758 --- dlib/svm/kernel_matrix.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlib/svm/kernel_matrix.h b/dlib/svm/kernel_matrix.h index 5ea8d0df4..028cb9c84 100644 --- a/dlib/svm/kernel_matrix.h +++ b/dlib/svm/kernel_matrix.h @@ -79,7 +79,13 @@ namespace dlib {} template + // This funny #ifdef thing is here because gcc sometimes gives a warning + // about v being unused otherwise. +#ifdef ENABLE_ASSERTS void assert_is_vector(const matrix_exp& v) +#else + void assert_is_vector(const matrix_exp& ) +#endif { // make sure requires clause is not broken DLIB_ASSERT(is_vector(v) == true,