summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2010-03-05 13:29:05 +0000
committeruqs <uqs@FreeBSD.org>2010-03-05 13:29:05 +0000
commit92e839db2442ec779da5345c0b15da98b2195ba6 (patch)
tree04c2e254062b5a5e14ea73745ab29c2146264263 /lib
parentb59a09ce7933da1dcf2be030f1a578a03364dd7a (diff)
downloadFreeBSD-src-92e839db2442ec779da5345c0b15da98b2195ba6.zip
FreeBSD-src-92e839db2442ec779da5345c0b15da98b2195ba6.tar.gz
Use default WARNS setting (of 6) for lib/csu.
PR: bin/140089 Reviewed by: jmallett Approved by: ed (co-mentor)
Diffstat (limited to 'lib')
-rw-r--r--lib/csu/Makefile.inc2
-rw-r--r--lib/csu/arm/Makefile5
-rw-r--r--lib/csu/ia64/Makefile3
-rw-r--r--lib/csu/mips/Makefile5
-rw-r--r--lib/csu/mips/crt1.c4
-rw-r--r--lib/csu/powerpc/Makefile3
6 files changed, 7 insertions, 15 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 51e9fdf..078cb9f 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -2,4 +2,4 @@
SSP_CFLAGS=
-WARNS?= 6
+.include "../Makefile.inc"
diff --git a/lib/csu/arm/Makefile b/lib/csu/arm/Makefile
index da0eb12..c018284 100644
--- a/lib/csu/arm/Makefile
+++ b/lib/csu/arm/Makefile
@@ -5,12 +5,9 @@
SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= Scrt1.o gcrt1.o
-CFLAGS+= -Wall -Wno-unused \
- -I${.CURDIR}/../common \
+CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include
-WARNS?= 2
-
all: ${OBJS}
CLEANFILES= ${OBJS}
diff --git a/lib/csu/ia64/Makefile b/lib/csu/ia64/Makefile
index d795103..781c458 100644
--- a/lib/csu/ia64/Makefile
+++ b/lib/csu/ia64/Makefile
@@ -5,8 +5,7 @@
SRCS= crt1.S crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= Scrt1.o gcrt1.o
-CFLAGS+= -Wall -Wno-unused \
- -I${.CURDIR}/../common \
+CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include
all: ${OBJS}
diff --git a/lib/csu/mips/Makefile b/lib/csu/mips/Makefile
index da0eb12..c018284 100644
--- a/lib/csu/mips/Makefile
+++ b/lib/csu/mips/Makefile
@@ -5,12 +5,9 @@
SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= Scrt1.o gcrt1.o
-CFLAGS+= -Wall -Wno-unused \
- -I${.CURDIR}/../common \
+CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include
-WARNS?= 2
-
all: ${OBJS}
CLEANFILES= ${OBJS}
diff --git a/lib/csu/mips/crt1.c b/lib/csu/mips/crt1.c
index 7409c28..fd00258 100644
--- a/lib/csu/mips/crt1.c
+++ b/lib/csu/mips/crt1.c
@@ -72,8 +72,8 @@ void __start(char **, void (*)(void), struct Struct_Obj_Entry *, struct ps_strin
void
__start(char **ap,
void (*cleanup)(void), /* from shared loader */
- struct Struct_Obj_Entry *obj, /* from shared loader */
- struct ps_strings *ps_strings)
+ struct Struct_Obj_Entry *obj __unused, /* from shared loader */
+ struct ps_strings *ps_strings __unused)
{
int argc;
char **argv;
diff --git a/lib/csu/powerpc/Makefile b/lib/csu/powerpc/Makefile
index 097f82d..c018284 100644
--- a/lib/csu/powerpc/Makefile
+++ b/lib/csu/powerpc/Makefile
@@ -5,8 +5,7 @@
SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= Scrt1.o gcrt1.o
-CFLAGS+= -Wall -Wno-unused \
- -I${.CURDIR}/../common \
+CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include
all: ${OBJS}
OpenPOWER on IntegriCloud