aboutsummaryrefslogtreecommitdiff
path: root/src/chain.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-14 16:07:12 +0200
committerjcid <devnull@localhost>2008-09-14 16:07:12 +0200
commit8a2b5a9e5b8aad195531603aedbbdd5a9eb98bfa (patch)
tree6053a7217a9c976c0d1e78bb57c4052ba8353e53 /src/chain.c
parent4272ccda16b3d6b8695f01eb3c6ea544a97cbf54 (diff)
- Made several cleanups according to compiler warnings with "-W -Wall".
Diffstat (limited to 'src/chain.c')
-rw-r--r--src/chain.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/chain.c b/src/chain.c
index 354817ea..37f43a7f 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -20,18 +20,19 @@
/*
* Show debugging info
*/
+#if VERBOSE
static void Chain_debug_msg(char *FuncStr, int Op, int Branch, int Dir,
ChainLink *Info)
{
-#if VERBOSE
const char *StrOps[] = {"", "OpStart", "OpSend",
"OpStop", "OpEnd", "OpAbort"};
MSG("%-*s: %-*s [%d%s] Info=%p Flags=%d\n",
12, FuncStr, 7, StrOps[Op], Branch, (Dir == 1) ? "F" : "B",
Info, Info ? Info->Flags : -1);
-#endif
}
-
+#else
+static void Chain_debug_msg() { }
+#endif
/*
* Create and initialize a new chain-link
*/