From: Lars Op den Kamp Date: Wed, 20 Jun 2012 09:28:00 +0000 (+0200) Subject: silence 'unused' warnings X-Git-Tag: upstream/2.2.0~1^2~22^2^2~38 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=866e7584589e40b1c9727a2a48785cd2bdb2a04a;p=deb_libcec.git silence 'unused' warnings --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 6db30a4..aa2a0dc 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -246,7 +246,7 @@ int CCECCommandHandler::HandleDeviceCecVersion(const cec_command &command) return CEC_ABORT_REASON_INVALID_OPERAND; } -int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &command) +int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command & UNUSED(command)) { return CEC_ABORT_REASON_REFUSED; } @@ -711,7 +711,7 @@ int CCECCommandHandler::HandleUserControlRelease(const cec_command &command) return COMMAND_HANDLED; } -int CCECCommandHandler::HandleVendorCommand(const cec_command &command) +int CCECCommandHandler::HandleVendorCommand(const cec_command & UNUSED(command)) { return CEC_ABORT_REASON_REFUSED; } diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index 8b8bc27..607a56a 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -204,8 +204,8 @@ namespace CEC virtual int HandleUserControlPressed(const cec_command &command); virtual int HandleUserControlRelease(const cec_command &command); virtual int HandleVendorCommand(const cec_command &command); - virtual int HandleVendorRemoteButtonDown(const cec_command &command) { return CEC_ABORT_REASON_REFUSED; } - virtual int HandleVendorRemoteButtonUp(const cec_command &command) { return CEC_ABORT_REASON_REFUSED; } + virtual int HandleVendorRemoteButtonDown(const cec_command & UNUSED(command)) { return CEC_ABORT_REASON_REFUSED; } + virtual int HandleVendorRemoteButtonUp(const cec_command & UNUSED(command)) { return CEC_ABORT_REASON_REFUSED; } virtual void UnhandledCommand(const cec_command &command, const cec_abort_reason reason); virtual size_t GetMyDevices(std::vector &devices) const;