Skip to content

Commit

Permalink
apps/snmp: Remove @RetVal tags on void methods
Browse files Browse the repository at this point in the history
Fixing clang 19.1.0 error:
src/apps/snmp/snmp_traps.c:140:15: error: empty paragraph passed to '@RetVal' command [-Werror,-Wdocumentation]
  • Loading branch information
yarrick committed Nov 26, 2024
1 parent 41b8f78 commit 3cae475
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/apps/snmp/snmp_traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ static s32_t req_id = 1;
* @param dst_idx index in 0 .. SNMP_TRAP_DESTINATIONS-1
* @param enable switch if 0 destination is disabled >0 enabled.
*
* @retval void
*/
void
snmp_trap_dst_enable(u8_t dst_idx, u8_t enable)
Expand All @@ -154,7 +153,6 @@ snmp_trap_dst_enable(u8_t dst_idx, u8_t enable)
* @param dst_idx index in 0 .. SNMP_TRAP_DESTINATIONS-1
* @param dst IPv4 address in host order.
*
* @retval void
*/
void
snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst)
Expand All @@ -171,7 +169,6 @@ snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst)
*
* @param enable enable SNMP traps
*
* @retval void
*/
void
snmp_set_auth_traps_enabled(u8_t enable)
Expand Down Expand Up @@ -200,7 +197,6 @@ snmp_get_auth_traps_enabled(void)
*
* @param snmp_version version that will be used for sending traps
*
* @retval void
*/
void
snmp_set_default_trap_version(u8_t snmp_version)
Expand Down Expand Up @@ -274,7 +270,6 @@ snmp_prepare_trap_oid(struct snmp_obj_id *dest_snmp_trap_oid, const struct snmp_
* @param generic_trap SNMP v1 generic trap
* @param specific_trap SNMP v1 specific trap
* @param varbinds list of varbinds
* @retval void
*/
static void
snmp_prepare_necessary_msg_fields(struct snmp_msg_trap *trap_msg, const struct snmp_obj_id *eoid, s32_t generic_trap, s32_t specific_trap, struct snmp_varbind *varbinds)
Expand Down Expand Up @@ -498,7 +493,6 @@ snmp_send_trap_specific(s32_t specific_trap, struct snmp_varbind *varbinds)
/**
* @ingroup snmp_traps
* Send coldstart trap
* @retval void
*/
void
snmp_coldstart_trap(void)
Expand All @@ -509,7 +503,6 @@ snmp_coldstart_trap(void)
/**
* @ingroup snmp_traps
* Send authentication failure trap (used internally by agent)
* @retval void
*/
void
snmp_authfail_trap(void)
Expand Down Expand Up @@ -727,7 +720,6 @@ snmp_trap_header_enc_pdu(struct snmp_msg_trap *trap, struct snmp_pbuf_stream *pb
* Encodes trap header part that is SNMP v1 header specific.
* @param trap Trap message
* @param pbuf_stream stream used for storing data inside pbuf
* @retval void
*/
static err_t
snmp_trap_header_enc_v1_specific(struct snmp_msg_trap *trap, struct snmp_pbuf_stream *pbuf_stream)
Expand Down Expand Up @@ -781,7 +773,6 @@ snmp_trap_header_enc_v1_specific(struct snmp_msg_trap *trap, struct snmp_pbuf_st
*
* @param trap Trap message
* @param pbuf_stream stream used for storing data inside pbuf
* @retval void
*/
static err_t
snmp_trap_header_enc_v2c_specific(struct snmp_msg_trap *trap, struct snmp_pbuf_stream *pbuf_stream)
Expand Down Expand Up @@ -814,7 +805,6 @@ snmp_trap_header_enc_v2c_specific(struct snmp_msg_trap *trap, struct snmp_pbuf_s
*
* @param trap Trap message
* @param pbuf_stream stream used for storing data inside pbuf
* @retval void
*/
static err_t
snmp_trap_header_enc(struct snmp_msg_trap *trap, struct snmp_pbuf_stream *pbuf_stream)
Expand Down

0 comments on commit 3cae475

Please sign in to comment.