Skip to content

Commit

Permalink
clang-tidy readability-named-parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Jun 2, 2017
1 parent 0d0cbd8 commit 17c1114
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Checks: '*
,-readability-else-after-return
,-readability-implicit-bool-cast
,-readability-inconsistent-declaration-parameter-name
,-readability-named-parameter
,-readability-non-const-parameter
,-readability-redundant-declaration
,-readability-redundant-member-init
Expand Down
2 changes: 1 addition & 1 deletion src/lib/DriverFramework
2 changes: 1 addition & 1 deletion src/modules/simulator/simulator_mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ void Simulator::poll_topics()
}
}

void *Simulator::sending_trampoline(void *)
void *Simulator::sending_trampoline(void * /*unused*/)
{
_instance->send();
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/uORB/Subscription.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class __EXPORT Subscription :
int instance = 0,
List<SubscriptionNode *> *list = nullptr);

Subscription(const Subscription &);
Subscription(const Subscription & /*other*/);

/**
* Deconstructor
Expand Down
3 changes: 2 additions & 1 deletion src/modules/uORB/uORB_tests/uORBTest_UnitTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class uORBTest::UnitTest
UnitTest() : pubsubtest_passed(false), pubsubtest_print(false) {}

// Disallow copy
UnitTest(const uORBTest::UnitTest &) {};
UnitTest(const uORBTest::UnitTest & /*unused*/) = delete;

static int pubsubtest_threadEntry(char *const argv[]);
int pubsublatency_main();

Expand Down
2 changes: 1 addition & 1 deletion src/platforms/posix/drivers/gyrosim/gyrosim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ namespace gyrosim

GYROSIM *g_dev_sim; // on simulated bus

int start(enum Rotation);
int start(enum Rotation /*rotation*/);
int stop();
int test();
int reset();
Expand Down

0 comments on commit 17c1114

Please sign in to comment.