coap_address_t peer; /**< the peer to notify */
size_t tokenlen; /**< length of the token */
#pragma GCC diagnostic ignored "-pedantic"
- unsigned char token[]; /**< the token to use in a response */
+ __extension__ unsigned char token[]; /**< the token to use in a response */
#pragma GCC diagnostic warning "-pedantic"
} coap_async_state_t;
unsigned int token_length:4; /* length of Token */
unsigned int code:8; /* request method (value 1--10) or response code (value 40-255) */
unsigned short id; /* message id */
- unsigned char token[0]; /* the actual token, if any */
+ __extension__ unsigned char token[0]; /* the actual token, if any */
} coap_hdr_t;
#else
typedef struct {
unsigned int version:2; /* protocol version */
unsigned int code:8; /* request method (value 1--10) or response code (value 40-255) */
unsigned short id; /* transaction id (network byte order!) */
- unsigned char token[0]; /* the actual token, if any */
+ __extension__ unsigned char token[0]; /* the actual token, if any */
} coap_hdr_t;
#endif
#pragma GCC diagnostic warning "-pedantic"