Skip to content

Commit

Permalink
fix wrong format inside macros
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Dec 3, 2023
1 parent c9589c9 commit b5b4d6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/tsid/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
#define TSID_DISABLE_WARNING_POP TSID_DO_PRAGMA(GCC diagnostic pop)
#define TSID_DISABLE_WARNING(warningName) \
TSID_DO_PRAGMA(GCC diagnostic ignored #warningName)
// clang-format off
#define TSID_DISABLE_WARNING_DEPRECATED \
TSID_DISABLE_WARNING(-Wdeprecated - declarations)
TSID_DISABLE_WARNING(-Wdeprecated-declarations)
// clang-format on

#else

Expand Down
4 changes: 3 additions & 1 deletion include/tsid/tasks/task-contact-force.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class TaskContactForce : public TaskBase {
* tasks that involve all contacts, such as the CoP task.
*/
TSID_DISABLE_WARNING_PUSH
TSID_DISABLE_WARNING(-Woverloaded - virtual)
// clang-format off
TSID_DISABLE_WARNING(-Woverloaded-virtual)
// clang-format on
virtual const ConstraintBase& compute(
const double t, ConstRefVector q, ConstRefVector v, Data& data,
const std::vector<std::shared_ptr<ContactLevel> >* contacts) = 0;
Expand Down

0 comments on commit b5b4d6d

Please sign in to comment.