This repository was archived by the owner on Nov 28, 2025. It is now read-only.
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 11#ifndef __SOT_CORE_MACROS_HH__
22#define __SOT_CORE_MACROS_HH__
33
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-
344#endif
Original file line number Diff line number Diff line change @@ -53,10 +53,7 @@ class SOT_CORE_EXPORT TaskAbstract : public dynamicgraph::Entity {
5353 /* Use a derivative of this class to store computational memory. */
5454 class MemoryTaskAbstract {
5555 public:
56- int timeLastChange;
57-
58- public:
59- MemoryTaskAbstract (void ) : timeLastChange(0 ){};
56+ MemoryTaskAbstract (void ) {};
6057 virtual ~MemoryTaskAbstract (void ){};
6158
6259 public:
Original file line number Diff line number Diff line change 2929
3030using namespace dynamicgraph ::sot;
3131
32- SOT_CORE_DISABLE_WARNING_PUSH
33- SOT_CORE_DISABLE_WARNING_DEPRECATED
3432typedef FeaturePose<R3xSO3Representation> FeaturePose_t;
3533typedef FeaturePose<SE3Representation> FeaturePoseSE3_t;
3634template <>
3735DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN (FeaturePose_t, " FeaturePose" );
3836template <>
3937DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN (FeaturePoseSE3_t, " FeaturePoseSE3" );
40- SOT_CORE_DISABLE_WARNING_POP
4138
4239namespace dynamicgraph {
4340namespace sot {
You can’t perform that action at this time.
0 commit comments