monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] 'warning: unused parameter'


From: Stephen Leake
Subject: [Monotone-devel] 'warning: unused parameter'
Date: Wed, 30 Apr 2014 03:40:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]