summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2011-05-19 14:58:09 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2011-05-19 14:59:52 +0200
commite62279538cea575d2e589b8ca0bda396dcbc0352 (patch)
tree169f0e2d7d7fa5003b650be55aeb16ed7c748876
parent20fc2b09389481d641cd8a8cc313bc8c9ebd983c (diff)
TDebugLoggerBase: improved clang error suppression
Hide the pragmas inside ifdefs to avoid complaints from other compilers about unknown pragmas.
-rwxr-xr-xsrc/sysync/debuglogger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sysync/debuglogger.cpp b/src/sysync/debuglogger.cpp
index a562fd8..d6b1e77 100755
--- a/src/sysync/debuglogger.cpp
+++ b/src/sysync/debuglogger.cpp
@@ -577,10 +577,14 @@ void TDebugLoggerBase::DebugOpenBlock(TDBG_LOCATION_PROTO cAppCharP aBlockName,
{
// we need a format and debug not completely off
if (getMask() && aBlockName) {
+#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
+#endif
DebugOpenBlock(TDBG_LOCATION_ARG aBlockName,aBlockTitle,aCollapsed,NULL);
+#ifdef __clang__
#pragma clang diagnostic pop
+#endif
}
} // TDebugLoggerBase::DebugOpenBlock