Skip to content

Commit c2ebb70

Browse files
Damian-Nordicrlubos
authored andcommitted
nrf_security: drivers: cracen: avoid empty unions
Empty unions are interpreted differently in C and C++: - in C, they have size 0 - in C++, they have size 1. This raises a warning when building with clang. Signed-off-by: Damian Krolik <[email protected]>
1 parent 6c6e756 commit c2ebb70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_primitives.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ struct cracen_pake_operation {
379379
#ifdef CONFIG_PSA_NEED_CRACEN_SPAKE2P
380380
cracen_spake2p_operation_t cracen_spake2p_ctx;
381381
#endif /* CONFIG_PSA_NEED_CRACEN_SPAKE2P */
382+
uint8_t _unused;
382383
};
383384
};
384385
typedef struct cracen_pake_operation cracen_pake_operation_t;

0 commit comments

Comments
 (0)