From: Martin Baute Date: Fri, 11 Mar 2016 06:50:03 +0000 (+0100) Subject: gets() not required anymore since C11. Disabled to avoid implicit declaration / type... X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=22b033cb87a99294d6d133d713f57c34a867b5f0 gets() not required anymore since C11. Disabled to avoid implicit declaration / type mismatch warnings, and possibly link errors. --- 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; }