Skip to content

Commit cc1ec8a

Browse files
committed
wolfssl/wolfcrypt/types.h: add missing do-while-0 nonstatments to WC_FREE_VAR() and WC_FREE_ARRAY() for pedantic semicolon swallowing.
1 parent a18dc7f commit cc1ec8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ typedef struct w64wrapper {
598598
#define WC_DECLARE_ARRAY(VAR_NAME, VAR_TYPE, VAR_ITEMS, VAR_SIZE, HEAP) \
599599
VAR_TYPE VAR_NAME[VAR_ITEMS][VAR_SIZE]
600600
#define WC_INIT_ARRAY(VAR_NAME, VAR_TYPE, VAR_ITEMS, VAR_SIZE, HEAP) do {} while(0)
601-
#define WC_FREE_VAR(VAR_NAME, HEAP) /* nothing to free, its stack */
602-
#define WC_FREE_ARRAY(VAR_NAME, VAR_ITEMS, HEAP) /* nothing to free, its stack */
601+
#define WC_FREE_VAR(VAR_NAME, HEAP) do {} while(0) /* nothing to free, its stack */
602+
#define WC_FREE_ARRAY(VAR_NAME, VAR_ITEMS, HEAP) do {} while(0) /* nothing to free, its stack */
603603

604604
#define WC_DECLARE_ARRAY_DYNAMIC_DEC(VAR_NAME, VAR_TYPE, VAR_ITEMS, VAR_SIZE, HEAP) \
605605
VAR_TYPE* VAR_NAME[VAR_ITEMS]; \

0 commit comments

Comments
 (0)