From 4e9565b4e63f741158878ff7297f1fe4619f9d6a Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 2 Jun 2022 23:39:04 +0200 Subject: [PATCH] Fixed FP invalidFunctionArgStr, found a daca@home: ftp://ftp.de.debian.org/debian/pool/main/h/haskell-hs-bibutils/haskell-hs-bibutils_6.10.0.0.orig.tar.gz --- cfg/std.cfg | 28 +++------------------------- test/cfg/std.c | 6 ++++++ 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/cfg/std.cfg b/cfg/std.cfg index 0aa0da5b4..c77a01700 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -5119,32 +5119,8 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun - - - - - false - - - - - - - - - - - - - - - - - 0: - - - + @@ -5153,10 +5129,12 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun + + diff --git a/test/cfg/std.c b/test/cfg/std.c index 5efd9a59f..646fdf255 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -29,6 +29,12 @@ #include #include +int invalidFunctionArgStr_strncmp( const char *p ) +{ + // No warning is expected for: + const char emdash[3] = { -42, -43, -44 }; + return strncmp( p, emdash, 3 ); +} float invalidFunctionArg_float_remquo (float x, float y, int* quo ) {