summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <[email protected]>2017-09-02 10:02:29 -0400
committerAllen Winter <[email protected]>2017-09-02 10:02:29 -0400
commitfd4c52d4aa9344aa901e3f9a9be66a9506a7f1e3 (patch)
treeb51e1193931c75c43253107432200352113fc2a0
parentf2d28d2aed2c01905b77052ffdb1976f41f1f64d (diff)
calendarjanitor/main.cpp - add a krazy exclusion
-rw-r--r--calendarjanitor/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendarjanitor/main.cpp b/calendarjanitor/main.cpp
index e72e5ac..24225c1 100644
--- a/calendarjanitor/main.cpp
+++ b/calendarjanitor/main.cpp
@@ -64,10 +64,12 @@ static void silenceStderr()
{
#ifdef Q_OS_UNIX
if (qgetenv("KDE_CALENDARJANITOR_DEBUG") != "1") {
+ //krazy:cond=syscalls since UNIX-only code
// Disable stderr so we can actually read what's going on
int fd = ::open("/dev/null", O_WRONLY);
::dup2(fd, 2);
::close(fd);
+ //krazy:endcond=syscalls
}
#endif
}