From f49341841e8a086cc12dae7ab37ed8f5b64e2a9d Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 9 Dec 2013 22:28:58 +0000 Subject: [PATCH] suppress a compiler warning refs #81 --- src/blackmisc/display.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blackmisc/display.cpp b/src/blackmisc/display.cpp index 3647bbf2c..a9e744f25 100644 --- a/src/blackmisc/display.cpp +++ b/src/blackmisc/display.cpp @@ -224,8 +224,10 @@ namespace BlackMisc // Try to open the file if the handle is invalid if (m_file->handle() == -1) { - if ( !m_file->open(QIODevice::WriteOnly) ) - printf ("Can't open log file '%s': %s\n", m_fileName.toLatin1().constData(), strerror(errno)); + if ( !m_file->open(QIODevice::WriteOnly) ) { + // 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)