Commit 765fb159 authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

only use clang pragma when using clang

parent 0006f53e
......@@ -76,12 +76,16 @@ public:
// here Clang is incorrectly creating a warning because it can't
// verify that syslog doesn't get an argument containing a format
// string. Therefore we need the pragmas
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wall"
#endif
if (isSyslog) {
syslog(__msg_priority[type], data.toUtf8().data());
#ifdef __clang__
#pragma clang diagnostic pop
#endif
} else {
logStream << data.toStdString() << std::endl;
logStream.flush();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment