test: remove a work around for clang static analysis warning
The issue is fixed in 2.1.0 version of uthash.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
diff --git a/test/integration/sapi-entity-util.c b/test/integration/sapi-entity-util.c
index 90ef689..4ecaf02 100644
--- a/test/integration/sapi-entity-util.c
+++ b/test/integration/sapi-entity-util.c
@@ -24,14 +24,7 @@
return -1;
e->entityHandle = handle;
-
- /*
- * Exclude HASH_ADD_INT defined in uthash.h from Clang static analysis,
- * see https://github.com/troydhanson/uthash/issues/166
- */
- #ifndef __clang_analyzer__
HASH_ADD_INT(entities, entityHandle, e);
- #endif
}
CopySizedByteBuffer((TPM2B *)&e->entityAuth, (TPM2B *)auth);
return 0;
diff --git a/test/integration/sapi-session-util.c b/test/integration/sapi-session-util.c
index 71abfe5..3ae6ad8 100644
--- a/test/integration/sapi-session-util.c
+++ b/test/integration/sapi-session-util.c
@@ -315,13 +315,7 @@
if (tmp)
HASH_DEL(sessions, tmp);
- /*
- * Exclude HASH_ADD_INT defined in uthash.h from Clang static analysis, see
- * https://github.com/troydhanson/uthash/issues/166
- */
- #ifndef __clang_analyzer__
HASH_ADD_INT(sessions, sessionHandle, session);
- #endif
*psession = session;
return TSS2_RC_SUCCESS;
}