Fix some compiler warnings emitted by gcc-4.8.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-10-16 14:21:20 +02:00
parent eba5faec67
commit 5117eff6f9
4 changed files with 9 additions and 9 deletions

View file

@ -59,7 +59,7 @@
struct globals {
char **names;
int cur;
char *cmd[1];
char *cmd[2 /* using 1 provokes compiler warning */];
} FIX_ALIASING;
#define G (*(struct globals*)&bb_common_bufsiz1)
#define names (G.names)