fix build errror with gcc

This commit is contained in:
wmayer
2012-02-07 20:57:41 +01:00
parent a272d42152
commit ec1362c2b7

View File

@@ -176,7 +176,7 @@ std::string FileInfo::getTempFileName(const char* FileName, const char* Path)
else
std::strcat(buf, "/fileXXXXXX");
int id = (void) mkstemp(buf);
int id = mkstemp(buf);
if (id > -1) {
FILE* file = fdopen(id, "w");
fclose(file);