← Back to team overview

dolfin team mailing list archive

SWIG warnings

 

There are quite a few warnings from SWIG when building PyDOLFIN.
The rest of DOLFIN builds with -Wall -Werror (turn on all warnings and
treat warnings as errors).

There are a few different kinds of warnings, listed below. Any help
appreciated with removing these warnings (also from the SWIG experts
on pycc-dev).

1.
----------------------------

SWIG:1: Warning(123): dangerous, use -nodefaultctor, -nodefaultdtor
instead.

2.
----------------------------

../../src/kernel/main/dolfin/constants.h:10: Warning(201): Unable to
find 'complex'
../../src/kernel/main/dolfin/constants.h:11: Warning(201): Unable to
find 'float.h'
../../src/kernel/log/dolfin/CursesLogger.h:12: Warning(201): Unable to
find 'curses.h'

3.
----------------------------

../../src/kernel/log/dolfin/Progress.h:26: Warning(362): operator=
ignored
../../src/kernel/log/dolfin/Progress.h:27: Warning(362): operator=
ignored
../../src/kernel/log/dolfin/Progress.h:28: Warning(383): operator++
ignored
../../src/kernel/log/dolfin/Progress.h:29: Warning(383): operator++
ignored

4.
----------------------------

../../src/kernel/parameter/dolfin/ParameterList.h:39: Warning(314):
def is a python keyword, symbol will be renamed as '_def'
../../src/kernel/parameter/dolfin/Parametrized.h:55: Warning(314): def
is a python keyword, symbol will be renamed as '_def'

- I'll rename def() to defined() in ParameterList to get around this.

5.
----------------------------

../../src/kernel/la/dolfin/uBlasVector.h:37: Warning(401): Nothing
known about base class 'ublas_vector'. Ignored.
../../src/kernel/fem/dolfin/UFCCell.h:23: Warning(401): Nothing known
about base class 'ufc::cell'. Ignored.
../../src/kernel/fem/dolfin/UFCMesh.h:20: Warning(401): Nothing known
about base class 'ufc::mesh'. Ignored.

6.
----------------------------

../../src/kernel/parameter/dolfin/Parameter.h:70: Warning(503): Can't
wrap 'operator int' unless renamed to a valid identifier.
../../src/kernel/parameter/dolfin/Parameter.h:73: Warning(503): Can't
wrap 'operator dolfin::uint' unless renamed to a valid identifier.
../../src/kernel/parameter/dolfin/Parameter.h:76: Warning(503): Can't
wrap 'operator dolfin::real' unless renamed to a valid identifier.
../../src/kernel/parameter/dolfin/Parameter.h:79: Warning(503): Can't
wrap 'operator bool' unless renamed to a valid identifier.
../../src/kernel/parameter/dolfin/Parameter.h:82: Warning(503): Can't
wrap 'operator std::string' unless renamed to a valid identifier.
../../src/kernel/parameter/dolfin/Parameter.h:88: Warning(503): Can't
wrap 'operator <<' unless renamed to a valid identifier.

/Anders