Skip to content

Commit

Permalink
Fix compile errors for set-but-not-used variables
Browse files Browse the repository at this point in the history
  • Loading branch information
robgjansen committed Jan 23, 2023
1 parent 6ac4c8d commit d9242ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tgen-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ TGenIOResponse tgenserver_onEvent(TGenServer* server, gint descriptor, TGenEvent
g_assert((events & TGEN_EVENT_READ) && descriptor == server->socketD);

gboolean blocked = FALSE;
#ifdef DEBUG
gint acceptedCount = 0;

#endif
/* accept as many connections as we have available, until we get EWOULDBLOCK error */
while(!blocked) {
gint result = _tgenserver_acceptPeer(server);
Expand All @@ -86,7 +87,9 @@ TGenIOResponse tgenserver_onEvent(TGenServer* server, gint descriptor, TGenEvent
server->socketD, result, errno, g_strerror(errno));
}
} else {
#ifdef DEBUG
acceptedCount++;
#endif
}
}

Expand Down
2 changes: 2 additions & 0 deletions test/test-markovmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ static void generate(TGenMarkovModel* mmodel) {
}
}
}

tgen_info("%d server packets and %d origin packets", numServerPackets, numOriginPackets);
}

gint main(gint argc, gchar *argv[]) {
Expand Down

0 comments on commit d9242ad

Please sign in to comment.