Skip to content

Commit

Permalink
Fix for macro variadic ... when no variables are used. Some compile…
Browse files Browse the repository at this point in the history
…rs like Watcom C have issue with this.
  • Loading branch information
dgarske committed Oct 22, 2024
1 parent beea2e1 commit 76aae03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -7163,9 +7163,9 @@ static int TLSX_CA_Names_Parse(WOLFSSL *ssl, const byte* input,

#else

#define CAN_GET_SIZE(...) 0
#define CAN_WRITE(...) 0
#define CAN_PARSE(...) 0
#define CAN_GET_SIZE() 0
#define CAN_WRITE() 0
#define CAN_PARSE() 0

#endif

Expand Down Expand Up @@ -14753,7 +14753,7 @@ static word16 TLSX_GetMinSize_Client(word16* type)
}
#define TLSX_GET_MIN_SIZE_CLIENT TLSX_GetMinSize_Client
#else
#define TLSX_GET_MIN_SIZE_CLIENT(...) 0
#define TLSX_GET_MIN_SIZE_CLIENT() 0
#endif


Expand Down Expand Up @@ -14822,7 +14822,7 @@ static word16 TLSX_GetMinSize_Server(const word16 *type)
}
#define TLSX_GET_MIN_SIZE_SERVER TLSX_GetMinSize_Server
#else
#define TLSX_GET_MIN_SIZE_SERVER(...) 0
#define TLSX_GET_MIN_SIZE_SERVER() 0
#endif


Expand Down

0 comments on commit 76aae03

Please sign in to comment.