Skip to content

Commit 2f4fb5e

Browse files
committed
Fix warnings for set, but not used.
1 parent ab45d27 commit 2f4fb5e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/tpm2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ static int TPM2_CommandProcess(TPM2_CTX* ctx, TPM2_Packet* packet,
275275
#endif
276276

277277
(void)cmdCode;
278+
(void)i;
279+
278280
return rc;
279281
}
280282

src/tpm2_packet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ TPM_ST TPM2_Packet_AppendAuth(TPM2_Packet* packet, TPM2_CTX* ctx, CmdInfo_t* inf
391391
}
392392
}
393393
/* based on position difference places calculated size at marked U32 above */
394-
i = TPM2_Packet_PlaceU32(packet, authTotalSzPos);
394+
(void)TPM2_Packet_PlaceU32(packet, authTotalSzPos);
395395
st = TPM_ST_SESSIONS;
396396
}
397397
return st;

0 commit comments

Comments
 (0)