aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-12-31 19:09:42 -0500
committerRob Landley <rob@landley.net>2006-12-31 19:09:42 -0500
commite2f796cb70de1d77913228551bbf53b4fdfd1fac (patch)
treedef8e284a44023824ba2149a5351b9d523aac487 /Makefile
parentc6f481c119540d740de14545bae2d63e0793d657 (diff)
downloadtoybox-e2f796cb70de1d77913228551bbf53b4fdfd1fac.tar.gz
Make some of gcc 4.1's dumber warnings go away.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 94bbe84e..392b4bff 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# Makefile for toybox.
# Copyright 2006 Rob Landley <rob@landley.net>
-CFLAGS = -Wall -Wundef -Os
+CFLAGS = -Wall -Wundef -Wno-char-subscripts -Os
CC = $(CROSS_COMPILE)gcc $(CFLAGS) -funsigned-char
STRIP = $(CROSS_COMPILE)strip
HOST_CC = gcc $(CFLAGS) -funsigned-char
@@ -38,7 +38,8 @@ bloatcheck: toybox_old toybox_unstripped
toyfiles = main.c toys/*.c lib/*.c
toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h lib/lib.h toys.h
$(CC) $(CFLAGS) -I . $(toyfiles) -o toybox_unstripped \
- -ffunction-sections -fdata-sections -Wl,--gc-sections
+ -ffunction-sections -fdata-sections -Wl,--gc-sections \
+ 2>&1 | sed -n -e '/may be used uninitialized/{s/.*/\n/;h;b};1{x;b};: print;x;/\n/b thing;p;: thing;${x;p}' >&2
toybox: toybox_unstripped
$(STRIP) toybox_unstripped -o toybox