suppress a compiler warning

refs #81
This commit is contained in:
Klaus Basan
2013-12-09 22:28:58 +00:00
committed by Mathew Sutcliffe
parent f6905d1d8b
commit f49341841e

View File

@@ -224,8 +224,10 @@ namespace BlackMisc
// Try to open the file if the handle is invalid // Try to open the file if the handle is invalid
if (m_file->handle() == -1) if (m_file->handle() == -1)
{ {
if ( !m_file->open(QIODevice::WriteOnly) ) if ( !m_file->open(QIODevice::WriteOnly) ) {
printf ("Can't open log file '%s': %s\n", m_fileName.toLatin1().constData(), strerror(errno)); // suppress warning about unsafe strerror
printf ("Can't open log file '%s': %d (%s)\n", m_fileName.toLatin1().constData(), errno, ""/*strerror(errno)*/);
}
} }
if (m_file->handle() != -1) if (m_file->handle() != -1)