From: batt Date: Fri, 16 Dec 2011 12:04:28 +0000 (+0000) Subject: Fix warning with gcc 4.6.1 (and also nightly test). X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cbdd295b3172dbfc635ff6895e5eaa0b92e07180;p=bertos.git Fix warning with gcc 4.6.1 (and also nightly test). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5183 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/ax25.h b/bertos/net/ax25.h index dd439445..b8ebe47c 100644 --- a/bertos/net/ax25.h +++ b/bertos/net/ax25.h @@ -183,7 +183,7 @@ void ax25_sendVia(AX25Ctx *ctx, const AX25Call *path, size_t path_len, const voi * * \see ax25_sendVia() if you want to send a frame with a specific path. */ -#define ax25_send(ctx, dst, src, buf, len) ax25_sendVia(ctx, ({static AX25Call __path[]={dst, src}; __path;}), 2, buf, len) +#define ax25_send(ctx, dst, src, buf, len) ax25_sendVia(ctx, ({static AX25Call __path[]={dst, src}; (AX25Call *)&__path;}), 2, buf, len) void ax25_init(AX25Ctx *ctx, KFile *channel, ax25_callback_t hook); void ax25_print(KFile *ch, const AX25Msg *msg);