Skip to content

Commit

Permalink
Suppress unused parameter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
panekk committed May 18, 2018
1 parent d22ebc8 commit cb0cdce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion avs_commons/git
15 changes: 10 additions & 5 deletions modules/fw_update/include_public/anjay/fw_update.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,16 @@ typedef const char *anjay_fw_update_get_version_t(void *user_ptr);
*
* @returns The callback shall return a negative value if it can be determined
* without a reboot that the firmware upgrade cannot be successfully
* performed. If one of the <c>ANJAY_FW_UPDATE_ERR_*</c> values is
* returned, an equivalent value will be set in the Update Result
* Resource. If an update is to be attempted, it shall either return 0
* or perform a reboot internally without returning. In either case,
* a reboot or at least a reinitialization of the library is then
* performed.
*
* If one of the <c>ANJAY_FW_UPDATE_ERR_*</c> values is returned, an
* equivalent value will be set in the Update Result Resource.
* Otherwise, if a non-zero value is returned, the Update Result
* Resource is set to generic "Firmware update failed" code.
*
* If an update is to be attempted, it shall either return 0 or
* perform a reboot internally without returning. In either case, a
* reboot or at least a reinitialization of the library is then
* required to pass the update result.
*/
typedef int anjay_fw_update_perform_upgrade_t(void *user_ptr);
Expand Down
1 change: 1 addition & 0 deletions src/servers/register_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static void send_update_args_decode(anjay_ssid_t *out_ssid,
* int32_t variable with value of unit. */
const int32_t s_out_socket_needs = *out_socket_needs;
assert(s_out_socket_needs >= 0 && *out_socket_needs < _SOCKET_NEEDS_LIMIT);
(void) s_out_socket_needs;
}

static anjay_sched_retryable_result_t
Expand Down

0 comments on commit cb0cdce

Please sign in to comment.