summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-25 19:54:02 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-25 19:54:02 (GMT)
commit1e459a94523e5cc71c21ce1a31645d174c1fabe3 (patch)
tree8b237e01414bc4952769caf6bb3bd264646a7e0a /SwifTools/Idle
parent381f054a2df50028f6fb59e0173414a415134b9c (diff)
downloadswift-contrib-1e459a94523e5cc71c21ce1a31645d174c1fabe3.zip
swift-contrib-1e459a94523e5cc71c21ce1a31645d174c1fabe3.tar.bz2
Added 'assertions' scons flag.
Diffstat (limited to 'SwifTools/Idle')
-rw-r--r--SwifTools/Idle/MacOSXIdleQuerier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/SwifTools/Idle/MacOSXIdleQuerier.cpp b/SwifTools/Idle/MacOSXIdleQuerier.cpp
index 64e010b..b634fcb 100644
--- a/SwifTools/Idle/MacOSXIdleQuerier.cpp
+++ b/SwifTools/Idle/MacOSXIdleQuerier.cpp
@@ -26,6 +26,7 @@ int MacOSXIdleQuerier::getIdleTimeSeconds() {
uint64_t idle = 0;
bool result = CFNumberGetValue((CFNumberRef)property, kCFNumberSInt64Type, &idle);
assert(result);
+ (void) result;
CFRelease(property);
return idle / 1000000000;
}