Skip to content

Commit 01b5409

Browse files
committed
Fix [-Waddress-of-packed-member] warning
Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent ff2cee3 commit 01b5409

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/utility/HCISharedMemTransport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "STM32Cube_FW/tl.h"
3131
#include "STM32Cube_FW/shci.h"
3232
#include "STM32Cube_FW/shci_tl.h"
33-
#include "STM32Cube_FW/stm_list.h"
3433
#include "STM32Cube_FW/app_conf.h"
3534

3635
/* this one is for printing info content when HW serial enabled */

src/utility/STM32Cube_FW/stm_list.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@
2323

2424
/* Includes ------------------------------------------------------------------*/
2525

26-
#include "stdint.h"
2726
#include "stdbool.h"
27+
#include "stm32_wpan_common.h"
2828

29-
typedef struct _tListNode {
29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
32+
33+
typedef PACKED_STRUCT _tListNode {
3034
struct _tListNode *next;
3135
struct _tListNode *prev;
3236
} tListNode;
@@ -55,4 +59,8 @@ void LST_get_next_node(tListNode *ref_node, tListNode **node);
5559

5660
void LST_get_prev_node(tListNode *ref_node, tListNode **node);
5761

62+
#ifdef __cplusplus
63+
}
64+
#endif
65+
5866
#endif /* _STM_LIST_H_ */

0 commit comments

Comments
 (0)