Skip to content

Commit

Permalink
Fixed compilation on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
igormironchik committed May 3, 2017
1 parent 74784de commit 0445144
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Args/arg_as_command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ class ArgAsCommand
//! All known names.
StringList & names ) const override
{
UNUSED( flags )

if( isCorrectName( m_name ) )
{
auto it = std::find( names.begin(), names.end(), m_name );
Expand Down
6 changes: 3 additions & 3 deletions Args/help_printer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ HelpPrinter::print( const std::string & name, std::ostream & to )
{
to << "Global arguments:" << std::endl << std::endl;

printArg = std::bind( &HelpPrinter::printOnlyFor, this,
auto printGlobalArg = std::bind( &HelpPrinter::printOnlyFor, this,
std::placeholders::_1, std::ref( to ),
gmaxFlag + 1 + gmaxName + 2, gmaxFlag );

Expand All @@ -509,15 +509,15 @@ HelpPrinter::print( const std::string & name, std::ostream & to )
to << "Required arguments:" << std::endl;

std::for_each( grequired.cbegin(), grequired.cend(),
printArg );
printGlobalArg );
}

if( !goptional.empty() )
{
to << "Optional arguments:" << std::endl;

std::for_each( goptional.cbegin(), goptional.cend(),
printArg );
printGlobalArg );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Args/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace Args {
//

//! Macro to supress warning about unused argument.
#define UNUSED( Var ) Var;
#define UNUSED( Var ) (void)Var;


//
Expand Down
2 changes: 1 addition & 1 deletion build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MxxRu::Cpp::composite_target( Mxx_ru::BUILD_ROOT ) {

toolset.force_cpp0x_std
toolset.force_cpp14
global_include_path "."

required_prj( "tests/prj.rb" )
Expand Down

0 comments on commit 0445144

Please sign in to comment.