From 22b033cb87a99294d6d133d713f57c34a867b5f0 Mon Sep 17 00:00:00 2001 From: Martin Baute Date: Fri, 11 Mar 2016 07:50:03 +0100 Subject: [PATCH] gets() not required anymore since C11. Disabled to avoid implicit declaration / type mismatch warnings, and possibly link errors. --- functions/stdio/gets.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c index 43c120e..9fff7a1 100644 --- a/functions/stdio/gets.c +++ b/functions/stdio/gets.c @@ -40,6 +40,7 @@ char * gets( char * s ) int main( void ) { +#ifndef REGTEST FILE * fh; char buffer[10]; char const * gets_test = "foo\nbar\0baz\nweenie"; @@ -62,6 +63,7 @@ int main( void ) TESTCASE( gets( buffer ) == NULL ); TESTCASE( fclose( fh ) == 0 ); TESTCASE( remove( testfile ) == 0 ); +#endif return TEST_RESULTS; } -- 2.40.0