Fix warning in test on Cygwin

This commit is contained in:
amai2012 2018-02-22 12:27:46 +01:00
parent bd21d7fff6
commit 1c38b3aae7
1 changed files with 2 additions and 0 deletions

View File

@ -217,10 +217,12 @@ void uninitvar(int fd)
// cppcheck-suppress uninitvar
regcomp(&reg, pattern, cflags);
regerror(0, &reg, 0, 0);
#ifndef __CYGWIN__
// cppcheck-suppress uninitvar
// cppcheck-suppress unreadVariable
// cppcheck-suppress ecvtCalled
char *buffer = ecvt(d, 11, &decimal, &sign);
#endif
// cppcheck-suppress gcvtCalled
gcvt(3.141, 2, buf);