From owner-svn-src-stable@freebsd.org Sat Dec 5 21:49:37 2015 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E0AEA407EC; Sat, 5 Dec 2015 21:49:37 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 402481B8F; Sat, 5 Dec 2015 21:49:37 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB5Lna0o017704; Sat, 5 Dec 2015 21:49:36 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB5LnZtE017695; Sat, 5 Dec 2015 21:49:35 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201512052149.tB5LnZtE017695@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Sat, 5 Dec 2015 21:49:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r291870 - in stable/10: contrib/netbsd-tests/lib/libc/c063 lib/libc/tests lib/libc/tests/stdio X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 21:49:37 -0000 Author: ngie Date: Sat Dec 5 21:49:35 2015 New Revision: 291870 URL: https://svnweb.freebsd.org/changeset/base/291870 Log: MFC r283801,r290846,r290851,r290856,r290860: r283801 (by araujo): Fix warning of implicit declaration of function 'mkdir'. Differential Revision: D2662 Reviewed by: rodrigc, ngie r290846: Bump WARNS to 2 Sponsored by: EMC / Isilon Storage Division r290851: Change WARNS to 2 across the board with all the libc testcases This effectively "reverts" r290846 Sponsored by: EMC / Isilon Storage Division r290856 (by bapt): also skip the definition of ':fopen_regular' to avoid the build to fail due to unused variables defined by ATF macros r290860 (by bapt): Remove unused variables to fix building world Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c stable/10/lib/libc/tests/Makefile.netbsd-tests stable/10/lib/libc/tests/stdio/fmemopen2_test.c stable/10/lib/libc/tests/stdio/getdelim_test.c stable/10/lib/libc/tests/stdio/perror_test.c stable/10/lib/libc/tests/stdio/scanfloat_test.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c ============================================================================== --- stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c Sat Dec 5 21:49:35 2015 (r291870) @@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_faccessat.c,v 1.2 20 #include #include #include +#ifdef __FreeBSD__ +#include +#endif #define DIR "dir" #define FILE "dir/faccessat" Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c ============================================================================== --- stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c Sat Dec 5 21:49:35 2015 (r291870) @@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_openat.c,v 1.2 2013/ #include #include #include +#ifdef __FreeBSD__ +#include +#endif #define DIR "dir" #define FILE "dir/openat" Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c ============================================================================== --- stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c Sat Dec 5 21:49:35 2015 (r291870) @@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_readlinkat.c,v 1.3 2 #include #include #include +#ifdef __FreeBSD__ +#include +#endif #define DIR "dir" #define FILE "dir/readlinkat" Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c ============================================================================== --- stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c Sat Dec 5 21:49:35 2015 (r291870) @@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_unlinkat.c,v 1.2 201 #include #include #include +#ifdef __FreeBSD__ +#include +#endif #define DIR "dir" #define FILE "dir/unlinkat" Modified: stable/10/lib/libc/tests/Makefile.netbsd-tests ============================================================================== --- stable/10/lib/libc/tests/Makefile.netbsd-tests Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/lib/libc/tests/Makefile.netbsd-tests Sat Dec 5 21:49:35 2015 (r291870) @@ -4,4 +4,6 @@ OBJTOP?= ${.OBJDIR:H:H:H:H} SRCTOP?= ${.CURDIR:H:H:H:H} TESTSRC?= ${SRCTOP}/contrib/netbsd-tests/lib/libc/${.CURDIR:T} +WARNS?= 2 + .include Modified: stable/10/lib/libc/tests/stdio/fmemopen2_test.c ============================================================================== --- stable/10/lib/libc/tests/stdio/fmemopen2_test.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/lib/libc/tests/stdio/fmemopen2_test.c Sat Dec 5 21:49:35 2015 (r291870) @@ -104,10 +104,9 @@ ATF_TC_WITHOUT_HEAD(test_autoalloc); ATF_TC_BODY(test_autoalloc, tc) { /* Let fmemopen allocate the buffer. */ - char str[] = "A quick test"; FILE *fp; long pos; - size_t nofw, nofr, i; + size_t nofw, i; int rc; /* Open a FILE * using fmemopen. */ Modified: stable/10/lib/libc/tests/stdio/getdelim_test.c ============================================================================== --- stable/10/lib/libc/tests/stdio/getdelim_test.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/lib/libc/tests/stdio/getdelim_test.c Sat Dec 5 21:49:35 2015 (r291870) @@ -113,7 +113,6 @@ ATF_TC_BODY(getline_basic, tc) ATF_TC_WITHOUT_HEAD(stream_error); ATF_TC_BODY(stream_error, tc) { - FILE *fp; char *line; size_t linecap; Modified: stable/10/lib/libc/tests/stdio/perror_test.c ============================================================================== --- stable/10/lib/libc/tests/stdio/perror_test.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/lib/libc/tests/stdio/perror_test.c Sat Dec 5 21:49:35 2015 (r291870) @@ -48,7 +48,7 @@ static char tmpfil[PATH_MAX]; ATF_TC_WITHOUT_HEAD(perror_test); ATF_TC_BODY(perror_test, tc) { - char buf[512], lbuf[512]; + char lbuf[512]; int i; char *s; Modified: stable/10/lib/libc/tests/stdio/scanfloat_test.c ============================================================================== --- stable/10/lib/libc/tests/stdio/scanfloat_test.c Sat Dec 5 21:38:53 2015 (r291869) +++ stable/10/lib/libc/tests/stdio/scanfloat_test.c Sat Dec 5 21:49:35 2015 (r291870) @@ -58,7 +58,6 @@ ATF_TC_BODY(normalized_numbers, tc) long double ld = 0.0; double d = 0.0; float f = 0.0; - char *endp; buf[0] = '\0'; ATF_REQUIRE(setlocale(LC_NUMERIC, "")); @@ -157,7 +156,6 @@ ATF_TC_BODY(infinities_and_nans, tc) long double ld = 0.0; double d = 0.0; float f = 0.0; - char *endp; ATF_REQUIRE(setlocale(LC_NUMERIC, "C")); @@ -205,11 +203,8 @@ ATF_TC_BODY(infinities_and_nans, tc) ATF_TC_WITHOUT_HEAD(rounding_tests); ATF_TC_BODY(rounding_tests, tc) { - char buf[128]; long double ld = 0.0; double d = 0.0; - float f = 0.0; - char *endp; ATF_REQUIRE(setlocale(LC_NUMERIC, "C")); @@ -287,10 +282,6 @@ ATF_TC_BODY(rounding_tests, tc) ATF_TC_WITHOUT_HEAD(strtod); ATF_TC_BODY(strtod, tc) { - char buf[128]; - long double ld = 0.0; - double d = 0.0; - float f = 0.0; char *endp; ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));