fix some more warnings

This commit is contained in:
Fischlurch 2009-01-10 19:03:28 +01:00
parent 5df4aee966
commit a966731019
10 changed files with 23 additions and 20 deletions

View file

@ -31,10 +31,9 @@
using std::string;
namespace asset
{
namespace test
{
namespace asset {
namespace test{
using lumiera::P;
using std::tr1::shared_ptr;
using std::tr1::weak_ptr;
@ -71,7 +70,7 @@ namespace asset
class CustomSharedPtr_test : public Test
{
virtual void
run (Arg arg)
run (Arg)
{
check_refcounting ();
check_shared_ownership ();

View file

@ -58,7 +58,7 @@ namespace lumiera
class LifeCycle_test : public Test
{
virtual void
run (Arg arg)
run (Arg)
{
ASSERT (basicInit, "the basic-init callback hasn't been invoked automatically");
ASSERT (1 == basicInit, "the basic-init callback has been invoked more than once");

View file

@ -78,7 +78,8 @@ namespace lumiera
*/
class TypeList_test : public Test
{
virtual void run(Arg arg)
void
run (Arg)
{
AssembledClass wow_me_has_numbers;

View file

@ -67,7 +67,7 @@ namespace util
class RemoveFromSet_test : public Test
{
virtual void
run (Arg arg)
run (Arg)
{
test_remove (" nothing ");
test_remove ("0");

View file

@ -58,7 +58,7 @@ namespace lib {
{
virtual void
run (Arg arg)
run (Arg)
{
cout << "checking ScopedHolder<Dummy>...\n";

View file

@ -101,7 +101,7 @@ namespace lib {
{
virtual void
run (Arg arg)
run (Arg)
{
cout << "checking ScopedHolder<Dummy>...\n";

View file

@ -46,7 +46,8 @@ namespace util
/** @test for util::Cmdline, wrapping various example cmdlines */
class CmdlineWrapper_test : public Test
{
virtual void run (Arg arg)
void
run (Arg)
{
testLine("");
testLine("\n\t ");

View file

@ -41,7 +41,8 @@ namespace test
*/
class TestOption_test : public Test
{
virtual void run(Arg arg)
void
run (Arg)
{
noOptions();
help();
@ -53,6 +54,7 @@ namespace test
additionalCmd2();
}
/** @test performs the actual test for the option parser test::TestOption */
void doIt (const string cmdline)
{

View file

@ -62,6 +62,7 @@ namespace lib {
*/
TransDummy (const TransDummy& o)
: Dummy()
{
TRACE (test, "COPY-ctor TransDummy( ref=%x ) --> this=%x", &o,this);
ASSERT (!o, "protocol violation: real copy operations inhibited");
@ -113,18 +114,17 @@ namespace lib {
/**********************************************************************************
* @test ScopedHolder and ScopedPtrHolder are initially empty and copyable.
* After taking ownership, they prohibit copy operations, manage the
* lifecycle of the contained object and provide smart-ptr like access.
* A series of identical tests is conducted both with the ScopedPtrHolder
* (the contained objects are heap allocated but managed by the holder)
* and with the ScopedHolder (objects placed inline)
* @test growing (re-allocating) a vector with noncopyable objects, with the
* help of a special Allocator and a custom \c transfer_control operation
* provided by the contained objects. The idea is to allow some special
* copy-operations for the purpose of re-allocations within the vector,
* without requiring the object to be really copyable.
*/
class VectorTransfer_test : public Test
{
virtual void
run (Arg arg)
run (Arg)
{
cout << "\n..setup table space for 2 elements\n";
TransDummyVector table;

View file

@ -97,7 +97,7 @@ namespace lumiera
template<class TOOLImpl>
static Tag&
get (TOOLImpl* const concreteTool=0)
get (TOOLImpl* const =0) // param used to pass type info
{
// we have a race condition here...
Tag& t = TagTypeRegistry<TOOL,TOOLImpl>::tag;