From 88742494762e421168c4df1e393eacb5c1cc9c16 Mon Sep 17 00:00:00 2001 From: Johannes Erschbamer Date: Tue, 4 Nov 2014 21:43:29 +0100 Subject: [PATCH] Suppressed Clang Static Analyzer hit Suppressed Clang Static Analyzer hit for unread attr_version variable (might be handy in future versions). --- VerifyStoreReceipt/VerifyStoreReceipt.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VerifyStoreReceipt/VerifyStoreReceipt.m b/VerifyStoreReceipt/VerifyStoreReceipt.m index 07b4f81..764cc15 100644 --- a/VerifyStoreReceipt/VerifyStoreReceipt.m +++ b/VerifyStoreReceipt/VerifyStoreReceipt.m @@ -150,9 +150,10 @@ // Attribute version ASN1_get_object(&p, &length, &type, &xclass, seq_end - p); if (type == V_ASN1_INTEGER && length == 1) { - // clang analyser hit (wontfix at the moment, since the code might come in handy later) - // But if someone has a convincing case throwing that out, I might do so, Roddi - attr_version = p[0]; + // Suppressed Clang Static Analyzer hit (stored value might come in handy later) + #ifndef __clang_analyzer__ + attr_version = p[0]; + #endif } p += length;