From 4d1a5f685b18eb706672ac2d6b5b108c04b2b84b Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Thu, 6 Feb 2020 08:49:06 +0100 Subject: [PATCH] SCHWED-4612: Fix warning on unused (static) function. --- modules/img/alg/src/alg_shift.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/img/alg/src/alg_shift.hh b/modules/img/alg/src/alg_shift.hh index dc47beb77..7519c57b3 100644 --- a/modules/img/alg/src/alg_shift.hh +++ b/modules/img/alg/src/alg_shift.hh @@ -25,8 +25,6 @@ #include <ost/img/value_util.hh> #include <ost/img/alg/module_config.hh> -namespace ost { namespace img { namespace alg { - namespace { unsigned int absmod(int x, unsigned int y) @@ -36,6 +34,8 @@ unsigned int absmod(int x, unsigned int y) } // anon ns +namespace ost { namespace img { namespace alg { + class DLLEXPORT_IMG_ALG ShiftFnc { public: ShiftFnc(): shift_() {} @@ -49,9 +49,9 @@ public: unsigned int height=in_state.GetExtent().GetHeight(); unsigned int width=in_state.GetExtent().GetWidth(); - unsigned int p0=absmod(shift_[0],width); - unsigned int p1=absmod(shift_[1],height); - unsigned int p2=absmod(shift_[2],depth); + unsigned int p0=::absmod(shift_[0],width); + unsigned int p1=::absmod(shift_[1],height); + unsigned int p2=::absmod(shift_[2],depth); for(unsigned int u=0;u<width;++u) { for(unsigned int v=0;v<height;++v) { -- GitLab