commit 92193665 warns about duplicate node installs.  This should only be
enabled for dev builds beacuse it causes unwanted noise on production
builds.  I've enclosed the relevant commands in #ifdef DEV_BUILD, which may
or may not be appropriate.  If there's a more appropriate compile-time
option available, that could be used instead.

---
 lib/command.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/command.c b/lib/command.c
index ab46fc4..14da6f7 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -636,6 +636,7 @@ install_element (enum node_type ntype, struct cmd_element 
*cmd)
       exit (1);
     }
   
+#ifdef DEV_BUILD
   if (hash_lookup (cnode->cmd_hash, cmd) != NULL)
     {
       fprintf (stderr, 
@@ -645,6 +646,7 @@ install_element (enum node_type ntype, struct cmd_element 
*cmd)
     }
   
   assert (hash_get (cnode->cmd_hash, cmd, hash_alloc_intern));
+#endif
   
   vector_set (cnode->cmd_vector, cmd);
   if (cmd->tokens == NULL)
-- 
2.10.1


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to