From 61f4b903a842576d9030e101e6054034aac3d4c1 Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Sat, 2 Feb 2019 10:08:49 +0100 Subject: [PATCH] revert 5d9151dfb8af906af56c290127422cd023378603 Accept compiler warning about unused functions, as they're in the header file and might be included by other code that requires the functions to be there. Happened for the unit tests. --- modules/img/alg/src/fill.hh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/img/alg/src/fill.hh b/modules/img/alg/src/fill.hh index 1ad32302f..b023d70f5 100644 --- a/modules/img/alg/src/fill.hh +++ b/modules/img/alg/src/fill.hh @@ -32,13 +32,11 @@ namespace { template<typename T> void set_val(T& v, Real rv, const Complex& cv); -// commented out to silence compiler warning, as they're not needed anywhere +template<> +void set_val<Real>(Real& v, Real rv, const Complex& cv) {v=rv;} -//template<> -//void set_val<Real>(Real& v, Real rv, const Complex& cv) {v=rv;} - -//template<> -//void set_val<Complex>(Complex& v, Real rv, const Complex& cv) {v=cv;} +template<> +void set_val<Complex>(Complex& v, Real rv, const Complex& cv) {v=cv;} template<typename T> void set_val(T& v, Real rv, const Complex& cv) -- GitLab