Skip to content

Deprecation warnings #132

Description

@AnHeuermann

While compiling OMTLMSimulator from OMSimulator I get a bunch of warnings. Some of them are errors under C++17.

clang++ -fPIC    -I../include   -c g2c_w32.c -o LINUX64/g2c_w32.o 
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
In file included from ../3rdParty/misc/include/coordTransform.h:599:
../3rdParty/misc/include/coordTransform.icc:149:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register double tmp;
    ^~~~~~~~~
1 warning generated.
make[3]: Entering directory '/home/aheuermann1/workspace/OMSimulator/OMTLMSimulator/FMIWrapper'
clang++  -std=c++11 -fPIC -pipe -O2 -frtti -Wall -Wextra -fexceptions -DUNICODE -DINTERFACE_TYPES -I. -I"../FMIWrapper" -I"../../3rdParty/FMIL/install/linux/include" -I"../../3rdParty/RegEx" -I"../common" -I"../3rdParty/misc/include" -I"cvode-2.9.0/include" -I"ida-2.9.0/include" -c ../3rdParty/misc/src/double33s.cc -o LINUX64/double33s.o
In file included from ../3rdParty/misc/src/double33s.cc:10:
In file included from ../3rdParty/misc/include/double33s.h:292:
../3rdParty/misc/include/float33s.h:68:22: warning: definition of implicit copy constructor for 'float33s' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
    inline float33s& operator=(const float33s& m) ;
                     ^
../3rdParty/misc/include/float33s.inc:28:12: note: in implicit copy constructor for 'float33s' first required here
    return float33s(a.x11+b.x11,a.x22+b.x22,a.x33+b.x33,a.x12+b.x12,a.x23+b.x23,a.x13+b.x13);
           ^
../3rdParty/misc/src/double33s.cc:15:22: warning: unused function 'sqr' [-Wunused-function]
static inline double sqr(const double x) { return x * x; }
                     ^
2 warnings generated.

I have CC=clang, CXX=clang++ defined.


OS: Ubuntu 20.04
OMTLMSimulator: cceb7be

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions