File tree Expand file tree Collapse file tree 3 files changed +1
-37
lines changed Expand file tree Collapse file tree 3 files changed +1
-37
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef __SOT_CORE_MACROS_HH__
2
2
#define __SOT_CORE_MACROS_HH__
3
3
4
- // ref https://www.fluentcpp.com/2019/08/30/how-to-disable-a-warning-in-cpp/
5
- #if defined(_MSC_VER)
6
-
7
- #define SOT_CORE_DISABLE_WARNING_PUSH __pragma (warning(push))
8
- #define SOT_CORE_DISABLE_WARNING_POP __pragma (warning(pop))
9
- #define SOT_CORE_DISABLE_WARNING (warningNumber ) \
10
- __pragma (warning(disable : warningNumber))
11
- #define SOT_CORE_DISABLE_WARNING_DEPRECATED SOT_CORE_DISABLE_WARNING (4996 )
12
- #define SOT_CORE_DISABLE_WARNING_FALLTHROUGH
13
-
14
- #elif defined(__GNUC__) || defined(__clang__)
15
-
16
- #define SOT_CORE_DO_PRAGMA (X ) _Pragma (#X)
17
- #define SOT_CORE_DISABLE_WARNING_PUSH SOT_CORE_DO_PRAGMA (GCC diagnostic push)
18
- #define SOT_CORE_DISABLE_WARNING_POP SOT_CORE_DO_PRAGMA (GCC diagnostic pop)
19
- #define SOT_CORE_DISABLE_WARNING (warningName ) \
20
- SOT_CORE_DO_PRAGMA (GCC diagnostic ignored #warningName)
21
- #define SOT_CORE_DISABLE_WARNING_DEPRECATED \
22
- SOT_CORE_DISABLE_WARNING (-Wdeprecated - declarations)
23
- #define SOT_CORE_DISABLE_WARNING_FALLTHROUGH \
24
- SOT_CORE_DISABLE_WARNING (-Wimplicit - fallthrough)
25
-
26
- #else
27
-
28
- #define SOT_CORE_DISABLE_WARNING_PUSH
29
- #define SOT_CORE_DISABLE_WARNING_POP
30
- #define SOT_CORE_DISABLE_WARNING_DEPRECATED
31
-
32
- #endif
33
-
34
4
#endif
Original file line number Diff line number Diff line change @@ -53,10 +53,7 @@ class SOT_CORE_EXPORT TaskAbstract : public dynamicgraph::Entity {
53
53
/* Use a derivative of this class to store computational memory. */
54
54
class MemoryTaskAbstract {
55
55
public:
56
- int timeLastChange;
57
-
58
- public:
59
- MemoryTaskAbstract (void ) : timeLastChange(0 ){};
56
+ MemoryTaskAbstract (void ) {};
60
57
virtual ~MemoryTaskAbstract (void ){};
61
58
62
59
public:
Original file line number Diff line number Diff line change 29
29
30
30
using namespace dynamicgraph ::sot;
31
31
32
- SOT_CORE_DISABLE_WARNING_PUSH
33
- SOT_CORE_DISABLE_WARNING_DEPRECATED
34
32
typedef FeaturePose<R3xSO3Representation> FeaturePose_t;
35
33
typedef FeaturePose<SE3Representation> FeaturePoseSE3_t;
36
34
template <>
37
35
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN (FeaturePose_t, " FeaturePose" );
38
36
template <>
39
37
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN (FeaturePoseSE3_t, " FeaturePoseSE3" );
40
- SOT_CORE_DISABLE_WARNING_POP
41
38
42
39
namespace dynamicgraph {
43
40
namespace sot {
You can’t perform that action at this time.
0 commit comments