From c5b8faf3b10268d6269b4ed2e4fb21326a6af315 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 27 Feb 2012 11:31:30 +0000 Subject: [PATCH] Explicitely ignore fail error on hash_insert We cannot do anything better here anyway - we are already in logging function, so just ignore this issue here - it will most likely stop application later. --- lib/log/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log/log.c b/lib/log/log.c index 66ef76c56..d90815bc6 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -262,7 +262,7 @@ void print_log(int level, const char *file, int line, int dm_errno, if (_duplicated) { if (dm_hash_lookup(_duplicated, message)) level = _LOG_NOTICE; - dm_hash_insert(_duplicated, message, (void*)1); + (void) dm_hash_insert(_duplicated, message, (void*)1); } }