mihPacket->dst_mihfId().setString( std::string(200, 'x'));
mihPacket.finalizeThis();
- BOOST_CHECK_EQUAL( mihPacket.size(), 8 + 17 + 203);
+ BOOST_CHECK_EQUAL( mihPacket.size(), unsigned(8 + 17 + 203));
BOOST_CHECK_EQUAL( mihPacket->payloadLength(), 17 + 203);
- BOOST_CHECK_EQUAL( mihPacket->dst_mihfId().length(), 200);
- BOOST_CHECK_EQUAL( senf::bytes(mihPacket->dst_mihfId()), 203);
+ BOOST_CHECK_EQUAL( mihPacket->dst_mihfId().length(), 200u);
+ BOOST_CHECK_EQUAL( senf::bytes(mihPacket->dst_mihfId()), 203u);
}
GenericTLVPacket::Parser tlv1 = *tlv_list_container.begin();
BOOST_CHECK_EQUAL( tlv1.type(), 0x42);
- BOOST_CHECK_EQUAL( tlv1.length(), 0x0a);
+ BOOST_CHECK_EQUAL( tlv1.length(), 0x0au);
BOOST_CHECK_EQUAL( tlv1.value().size(), 0x0a);
GenericTLVPacket::Parser tlv2 = *boost::next(tlv_list_container.begin());
BOOST_CHECK_EQUAL( tlv2.type(), 0x43);
- BOOST_CHECK_EQUAL( tlv2.length(), 0x05);
+ BOOST_CHECK_EQUAL( tlv2.length(), 0x05u);
BOOST_CHECK_EQUAL( tlv2.value().size(), 0x05);
}
++ args;
BOOST_REQUIRE( args != info.arguments().end() );
- BOOST_REQUIRE_EQUAL( args->size(), 1u );
+ BOOST_REQUIRE_EQUAL( args->size(), 1 );
BOOST_CHECK_EQUAL( args->begin()->value(), tokens[1] );
++ args;
BOOST_REQUIRE( args != info.arguments().end() );
- BOOST_REQUIRE_EQUAL( args->size(), 1u );
+ BOOST_REQUIRE_EQUAL( args->size(), 1 );
BOOST_CHECK_EQUAL( args->begin()->value(), tokens[2] );
++ args;
BOOST_REQUIRE( args != info.arguments().end() );
- BOOST_REQUIRE_EQUAL( args->size(), 8u );
+ BOOST_REQUIRE_EQUAL( args->size(), 8 );
for (unsigned i (0); i<8; ++i)
BOOST_CHECK_EQUAL( args->begin()[i].value(), tokens[4+i] );
++ args;
BOOST_REQUIRE( args != info.arguments().end() );
- BOOST_REQUIRE_EQUAL( args->size(), 1u );
+ BOOST_REQUIRE_EQUAL( args->size(), 1 );
BOOST_CHECK_EQUAL( args->begin()->value(), tokens[13] );
++ args;
BOOST_REQUIRE( args != info.arguments().end() );
- BOOST_REQUIRE_EQUAL( args->size(), 1u );
+ BOOST_REQUIRE_EQUAL( args->size(), 1 );
BOOST_CHECK_EQUAL( args->begin()->value(), tokens[14] );
++ args;
opts.Add('CXX', 'C++ compiler to use', 'g++')
opts.Add('EXTRA_DEFINES', 'Additional preprocessor defines', '')
opts.Add('EXTRA_LIBS', 'Additional libraries to link against', '')
+ opts.Add('EXTRA_CCFLAGS', 'Additional compilation parameters', '')
opts.Add(SCons.Options.BoolOption('final','Enable optimization',0))
opts.Add(SCons.Options.BoolOption('debug','Enable debug symbols in binaries',0))
opts.Add(SCons.Options.BoolOption('profile','Enable profiling',0))
env.Append(CPPDEFINES = [ '$EXTRA_DEFINES' ],
LIBS = [ '$EXTRA_LIBS' ],
+ CXXFLAGS = [ '$EXTRA_CCFLAGS' ],
ALLOBJECTS = [])
return env