summaryrefslogtreecommitdiffstats
path: root/runtime/debug.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-23 11:29:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-23 11:29:47 +0200
commitb711a34a075cf3979f48937f8af8b05030644e82 (patch)
treeb2f53af932db04bc0fad95d771a0a70e30ef0125 /runtime/debug.c
parent7b1a570d54ac4c82325aeeee70d7a8871ecd688a (diff)
downloadrsyslog-b711a34a075cf3979f48937f8af8b05030644e82.tar.gz
rsyslog-b711a34a075cf3979f48937f8af8b05030644e82.tar.xz
rsyslog-b711a34a075cf3979f48937f8af8b05030644e82.zip
disabled compile warnings caused by third-party libraries
Diffstat (limited to 'runtime/debug.c')
-rw-r--r--runtime/debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/debug.c b/runtime/debug.c
index f543efd8..1450d029 100644
--- a/runtime/debug.c
+++ b/runtime/debug.c
@@ -743,6 +743,7 @@ sigsegvHdlr(int signum)
}
+#pragma GCC diagnostic ignored "-Wempty-body"
/* print some debug output when an object is given
* This is mostly a copy of dbgprintf, but I do not know how to combine it
* into a single function as we have variable arguments and I don't know how to call
@@ -834,8 +835,10 @@ dbgoprint(obj_t *pObj, char *fmt, ...)
if(altdbg != NULL) fflush(altdbg);
pthread_cleanup_pop(1);
}
+#pragma GCC diagnostic warning "-Wempty-body"
+#pragma GCC diagnostic ignored "-Wempty-body"
/* print some debug output when no object is given
* WARNING: duplicate code, see dbgoprin above!
*/
@@ -908,6 +911,7 @@ dbgprintf(char *fmt, ...)
if(altdbg != NULL) fflush(altdbg);
pthread_cleanup_pop(1);
}
+#pragma GCC diagnostic warning "-Wempty-body"
void tester(void)
{