Remove some dead variables.

Fix screwy output for invalid tilde expansion in expand.cpp
Some cleanup per clang static analyzer
This commit is contained in:
ridiculousfish
2012-03-25 23:31:03 -07:00
parent a11687fc5c
commit 31b7d076b7
6 changed files with 17 additions and 19 deletions

View File

@@ -203,10 +203,15 @@ void iothread_drain_all(void) {
if (s_active_thread_count == 0)
return;
int thread_count = s_active_thread_count;
#define TIME_DRAIN 0
#if TIME_DRAIN
double now = timef();
#endif
while (s_active_thread_count > 0) {
iothread_service_completion();
}
#if TIME_DRAIN
double after = timef();
//printf("(Waited %.02f msec for %d thread(s) to drain)\n", 1000 * (after - now), thread_count);
printf("(Waited %.02f msec for %d thread(s) to drain)\n", 1000 * (after - now), thread_count);
#endif
}