Skip to content
Snippets Groups Projects
Commit 4d1a5f68 authored by Bienchen's avatar Bienchen
Browse files

SCHWED-4612: Fix warning on unused (static) function.

parent 5b6da8c8
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include <ost/img/value_util.hh> #include <ost/img/value_util.hh>
#include <ost/img/alg/module_config.hh> #include <ost/img/alg/module_config.hh>
namespace ost { namespace img { namespace alg {
namespace { namespace {
unsigned int absmod(int x, unsigned int y) unsigned int absmod(int x, unsigned int y)
...@@ -36,6 +34,8 @@ unsigned int absmod(int x, unsigned int y) ...@@ -36,6 +34,8 @@ unsigned int absmod(int x, unsigned int y)
} // anon ns } // anon ns
namespace ost { namespace img { namespace alg {
class DLLEXPORT_IMG_ALG ShiftFnc { class DLLEXPORT_IMG_ALG ShiftFnc {
public: public:
ShiftFnc(): shift_() {} ShiftFnc(): shift_() {}
...@@ -49,9 +49,9 @@ public: ...@@ -49,9 +49,9 @@ public:
unsigned int height=in_state.GetExtent().GetHeight(); unsigned int height=in_state.GetExtent().GetHeight();
unsigned int width=in_state.GetExtent().GetWidth(); unsigned int width=in_state.GetExtent().GetWidth();
unsigned int p0=absmod(shift_[0],width); unsigned int p0=::absmod(shift_[0],width);
unsigned int p1=absmod(shift_[1],height); unsigned int p1=::absmod(shift_[1],height);
unsigned int p2=absmod(shift_[2],depth); unsigned int p2=::absmod(shift_[2],depth);
for(unsigned int u=0;u<width;++u) { for(unsigned int u=0;u<width;++u) {
for(unsigned int v=0;v<height;++v) { for(unsigned int v=0;v<height;++v) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment