diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg index c912e8c90..d4fc65314 100644 --- a/cfg/gnu.cfg +++ b/cfg/gnu.cfg @@ -1120,7 +1120,7 @@ - + mkostemp mkstemps mkostemps diff --git a/test/cfg/gnu.c b/test/cfg/gnu.c index c5672eb52..677c6a0f2 100644 --- a/test/cfg/gnu.c +++ b/test/cfg/gnu.c @@ -17,56 +17,56 @@ void resourceLeak_mkostemps(char *template, int suffixlen, int flags) { - // cppcheck-suppress unreadVariable - int fp = mkostemps(template, suffixlen, flags); - // cppcheck-suppress resourceLeak + // cppcheck-suppress unreadVariable + int fp = mkostemps(template, suffixlen, flags); + // cppcheck-suppress resourceLeak } void no_resourceLeak_mkostemps_01(char *template, int suffixlen, int flags) { - int fp = mkostemps(template, suffixlen, flags); - close(fp); + int fp = mkostemps(template, suffixlen, flags); + close(fp); } int no_resourceLeak_mkostemps_02(char *template, int suffixlen, int flags) { - return mkostemps(template, suffixlen, flags); + return mkostemps(template, suffixlen, flags); } void resourceLeak_mkstemps(char *template, int suffixlen) { - // cppcheck-suppress unreadVariable - int fp = mkstemps(template, suffixlen); - // cppcheck-suppress resourceLeak + // cppcheck-suppress unreadVariable + int fp = mkstemps(template, suffixlen); + // cppcheck-suppress resourceLeak } void no_resourceLeak_mkstemps_01(char *template, int suffixlen) { - int fp = mkstemps(template, suffixlen); - close(fp); + int fp = mkstemps(template, suffixlen); + close(fp); } int no_resourceLeak_mkstemps_02(char *template, int suffixlen) { - return mkstemps(template, suffixlen); + return mkstemps(template, suffixlen); } void resourceLeak_mkostemp(char *template, int flags) { - // cppcheck-suppress unreadVariable - int fp = mkostemp(template, flags); - // cppcheck-suppress resourceLeak + // cppcheck-suppress unreadVariable + int fp = mkostemp(template, flags); + // cppcheck-suppress resourceLeak } void no_resourceLeak_mkostemp_01(char *template, int flags) { - int fp = mkostemp(template, flags); - close(fp); + int fp = mkostemp(template, flags); + close(fp); } int no_resourceLeak_mkostemp_02(char *template, int flags) { - return mkostemp(template, flags); + return mkostemp(template, flags); } void valid_code(int argInt1) diff --git a/test/cfg/posix.c b/test/cfg/posix.c index ed348f09b..f22406b91 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -136,20 +136,20 @@ void resourceLeak_fdopen(int fd) void resourceLeak_mkstemp(char *template) { - // cppcheck-suppress unreadVariable - int fp = mkstemp(template); - // cppcheck-suppress resourceLeak + // cppcheck-suppress unreadVariable + int fp = mkstemp(template); + // cppcheck-suppress resourceLeak } void no_resourceLeak_mkstemp_01(char *template) { - int fp = mkstemp(template); - close(fp); + int fp = mkstemp(template); + close(fp); } int no_resourceLeak_mkstemp_02(char *template) { - return mkstemp(template); + return mkstemp(template); } void resourceLeak_fdopendir(int fd)