summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/stdio/fmemopen2_test.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-05 21:49:35 +0000
committerngie <ngie@FreeBSD.org>2015-12-05 21:49:35 +0000
commit5e0ed4fa0a68fde14782f68c7461b8b95176515b (patch)
tree7ee2292c97b1b6b9a0064ff90fcd38f441a9828d /lib/libc/tests/stdio/fmemopen2_test.c
parent11ddbfbc5cbb55d74dd49e7d13251e56cb1dff91 (diff)
downloadFreeBSD-src-5e0ed4fa0a68fde14782f68c7461b8b95176515b.zip
FreeBSD-src-5e0ed4fa0a68fde14782f68c7461b8b95176515b.tar.gz
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
Diffstat (limited to 'lib/libc/tests/stdio/fmemopen2_test.c')
-rw-r--r--lib/libc/tests/stdio/fmemopen2_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/tests/stdio/fmemopen2_test.c b/lib/libc/tests/stdio/fmemopen2_test.c
index d4a14a8..62831fb 100644
--- a/lib/libc/tests/stdio/fmemopen2_test.c
+++ b/lib/libc/tests/stdio/fmemopen2_test.c
@@ -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. */
OpenPOWER on IntegriCloud