Skip to content

Commit

Permalink
Merge pull request #3280 from BsAtHome/fix_clang-unused-private-members
Browse files Browse the repository at this point in the history
Fix clang warning "private field '...' is not used"
  • Loading branch information
andypugh authored Jan 15, 2025
2 parents 756e613 + e40587a commit 6b242af
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/hal/user_comps/xhc-whb04b-6/hal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Hal::Hal(Profiles::HalRequestProfile halRequestProfile) :
mStepMode(HandwheelStepmodes::Mode::MPG),
mHalRequestProfile(halRequestProfile)
{
(void)mStepMode;
}
// ----------------------------------------------------------------------
Hal::~Hal()
Expand Down
4 changes: 4 additions & 0 deletions src/hal/user_comps/xhc-whb04b-6/pendant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ FeedRotaryButton::FeedRotaryButton(const KeyCode& keyCode,
mStepSize(0),
mEventListener(listener)
{
(void)mEventListener;
}
// ----------------------------------------------------------------------
FeedRotaryButton::~FeedRotaryButton()
Expand Down Expand Up @@ -647,6 +648,7 @@ AxisRotaryButton::AxisRotaryButton(const KeyCode& keyCode, KeyEventListener* lis
RotaryButton(keyCode),
mEventListener(listener)
{
(void)mEventListener;
}
// ----------------------------------------------------------------------
AxisRotaryButton::~AxisRotaryButton()
Expand Down Expand Up @@ -681,6 +683,7 @@ Handwheel::Handwheel(const FeedRotaryButton& feedButton, KeyEventListener* liste
mWheelCout(&std::cout),
mPrefix("pndnt ")
{
(void)mFeedButton;
}
// ----------------------------------------------------------------------
Handwheel::~Handwheel()
Expand Down Expand Up @@ -753,6 +756,7 @@ ButtonsState::ButtonsState(KeyEventListener* listener, const ButtonsState* previ
mPreviousState(previousState),
mEventListener(listener)
{
(void)mPreviousState;
}
// ----------------------------------------------------------------------
ButtonsState::~ButtonsState()
Expand Down
4 changes: 2 additions & 2 deletions src/hal/user_comps/xhc-whb04b-6/pendant.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ class Pendant : public KeyEventListener
bool mIsLeadModeFeed = false;
bool mIsStepMode_5_10 = false;

float mScale;
float mMaxVelocity;
// float mScale;
// float mMaxVelocity;

const char * mPrefix;
std::ostream mDevNull{nullptr};
Expand Down
1 change: 1 addition & 0 deletions src/hal/user_comps/xhc-whb04b-6/xhc-whb04b6.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ XhcWhb04b6Component::XhcWhb04b6Component() :
packageReceivedEventReceiver(*this),
mPendant(mHal, mUsb.getOutputPackageData())
{
(void)packageReceivedEventReceiver;
setSimulationMode(true);
enableVerbosePendant(false);
enableVerboseRx(false);
Expand Down

0 comments on commit 6b242af

Please sign in to comment.