'warning: unused parameter'

Stephen Leake <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
I've succeeded in setting up a MinGW64 environment. It's quite nice once
you get past the tools install issues. I have not committed
INSTALL_windows_mingw64.txt yet; soon.

I'm getting lots of 'warning: unused parameter' messages from g++:

../monotone/src/simplestring_xform.hh:51:61: warning: unused parameter 'thing' [-Wunused-parameter]
 origin::type get_made_from<std::string>(std::string const & thing)
                                                             ^

The code that generates this is in simplestring_xform.hh:

template<> inline
origin::type get_made_from<std::string>(std::string const & thing)
{
  return origin::internal;
}

Is there a way to mark 'thing' as unused? or do we have to disable that
warning with -Wno-unused-parameter?

-- 
-- Stephe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.