Commit 6f6f7d6c authored by Daniel Leung's avatar Daniel Leung Committed by Fabio Baltieri
Browse files

toolchain: gcc: rename argument for UNALIGNED_GET()



Rename the argument for UNALIGNED_GET() from p to g.
This fixes shadow variable warning of __p if UNALIGNED_GET()
is nested with UNALIGNED_PUT().

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 7c4e641f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -123,12 +123,12 @@
#endif

/* Unaligned access */
#define UNALIGNED_GET(p)						\
#define UNALIGNED_GET(g)						\
__extension__ ({							\
	struct  __attribute__((__packed__)) {				\
		__typeof__(*(p)) __v;					\
	} *__p = (__typeof__(__p)) (p);					\
	__p->__v;							\
		__typeof__(*(g)) __v;					\
	} *__g = (__typeof__(__g)) (g);					\
	__g->__v;							\
})