aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2010-03-05 13:29:05 +0000
committerUlrich Spörlein <uqs@FreeBSD.org>2010-03-05 13:29:05 +0000
commit03dab16e1d96c59d081bf3af34a0cdcaf0bcc9fc (patch)
tree04c2e254062b5a5e14ea73745ab29c2146264263
parent98b77738b8c5305ecaf31c7f8b2fb06cb6034a66 (diff)
downloadsrc-03dab16e1d96c59d081bf3af34a0cdcaf0bcc9fc.tar.gz
src-03dab16e1d96c59d081bf3af34a0cdcaf0bcc9fc.zip
Use default WARNS setting (of 6) for lib/csu.
PR: bin/140089 Reviewed by: jmallett Approved by: ed (co-mentor)
Notes
Notes: svn path=/head/; revision=204757
-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 51e9fdfa7478..078cb9f08432 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 da0eb125ce83..c0182847cd04 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 d79510399dbb..781c4582d1fd 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 da0eb125ce83..c0182847cd04 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 7409c28e248c..fd00258b24e9 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 097f82df1f9b..c0182847cd04 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}