Skip to content

Commit

Permalink
FreeRTOS_Sockets: fix compilation on GCC with enabled -Wpedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixaill committed Dec 9, 2023
1 parent e13ff51 commit 0a5c517
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/FreeRTOS_Sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,14 @@ BaseType_t FreeRTOS_setsockopt( Socket_t xSocket,
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-111 */
/* coverity[misra_c_2012_rule_11_8_violation] */
/* coverity[misra_c_2012_rule_11_1_violation] */
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#endif
pxSocket->pxUserWakeCallback = ( SocketWakeupCallback_t ) pvOptionValue;
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
xReturn = 0;
break;
#endif /* ipconfigSOCKET_HAS_USER_WAKE_CALLBACK */
Expand Down

0 comments on commit 0a5c517

Please sign in to comment.