From 49099e78ffbd176ae3f8c755cb048f347aaa5777 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Sun, 1 Mar 2015 20:18:26 +0100 Subject: [PATCH] Add more string conversion functions to library files --- cfg/gnu.cfg | 125 +++++++++++++++++++++++++++++++++++++++++++++++ cfg/posix.cfg | 48 ++++++++++++++++++ test/cfg/posix.c | 6 +++ 3 files changed, 179 insertions(+) diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg index 8a72ccf5d..2c8d5dbe6 100644 --- a/cfg/gnu.cfg +++ b/cfg/gnu.cfg @@ -60,4 +60,129 @@ + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + diff --git a/cfg/posix.cfg b/cfg/posix.cfg index 908ed3269..c349d8d74 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -997,4 +997,52 @@ false + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 9f9da1207..831803ab8 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -143,6 +143,12 @@ void uninitvar(int fd) { pattern=""; // cppcheck-suppress uninitvar regcomp(®, pattern, cflags); + int decimal, sign; + double d; + // cppcheck-suppress uninitvar + // cppcheck-suppress unreadVariable + char *buffer = ecvt(d, 11, &decimal, &sign); + gcvt(3.141, 2, NULL); } void uninitvar_types(void) {