Warnings when compiling Pooma

Gasper Tkacik gtkacik at Princeton.EDU
Mon Feb 17 20:59:44 UTC 2003


Hi all!

When I compile Pooma (I currently only use Array<2, double> and no other 
fancy stuff), I get warnings like:

/development/external/r2/src/Domain/Grid.h:360: warning: base class `class
Domain<1, DomainTraits<Grid<1> > >' should be explicitly initialized in the
copy constructor
In file included from /development/external/r2/src/Pooma/Arrays.h:46,
from /development/utilities/cframework/alg_rfg.h:21,
from main.cpp:22:
/development/external/r2/src/Engine/RemoteEngine.h: In copy constructor
`GatherContexts::GatherContextsData::GatherContextsData(const
GatherContexts::GatherContextsData&)':

or
 
/development/external/r2/src/Domain/DomainTraits.Interval.h:264: 
warning: comparison
between signed and unsigned integer expressions
/development/external/r2/src/Domain/DomainTraits.Interval.h: In static 
member
function `static void DomainTraits<Interval<1> >::setDomain(int (&)[2],
const T1&, const T2&) [with T1 = int, T2 = long unsigned int]':

I.e. mostly complaining about class initialization or comparison between 
signed / unsigned types.

Is this normal in the sense that you folks use Pooma and don't see all 
these warnings or am I passing somewhere a strange template parameter? I 
tried to follow the examples... I am running gcc 3.2.20020903 on Linux 
RH8.0, from KDevelop tool (-Wall).

I just checked - I get the warnings even if I only compile the following 
piece:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "Pooma/Pooma.h"
#include "Pooma/Arrays.h"
#include <iostream.h>
#include <stdlib.h>
#include <time.h>

int main(int argc, char *argv[])
{
  Pooma::initialize(argc, argv);


  Pooma::finalize();

 
  return EXIT_SUCCESS;
}

Best regards, Gasper.




More information about the pooma-dev mailing list