Skip to content

Commit

Permalink
aggregator: help compiler see impossible code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
grobian committed Jun 16, 2015
1 parent bd24817 commit 825d019
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aggregator.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <time.h>
#include <regex.h>
#include <pthread.h>
#include <assert.h>

#include "relay.h"
#include "dispatcher.h"
Expand Down Expand Up @@ -331,6 +332,8 @@ aggregator_expire(void *sub)
case TS_END:
ts = b->start + s->interval;
break;
default:
assert(0);
}
switch (c->type) {
case SUM:
Expand Down

0 comments on commit 825d019

Please sign in to comment.