From 85aca86d7905a7e03042c61ea96b735e75543a94 Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Wed, 29 May 2024 08:16:23 -0600 Subject: [PATCH] flex: fix various warnings --- src/crypto/flex/flex.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/crypto/flex/flex.cpp b/src/crypto/flex/flex.cpp index d6f2d1a3..2fdc56a1 100644 --- a/src/crypto/flex/flex.cpp +++ b/src/crypto/flex/flex.cpp @@ -74,16 +74,14 @@ static void selectAlgo(unsigned char nibble, bool* selectedAlgos, uint8_t* selec } static void getAlgoString(void *mem, unsigned int size, uint8_t* selectedAlgoOutput, int algoCount) { - int i; unsigned char *p = (unsigned char *)mem; unsigned int len = size/2; - unsigned char j = 0; bool selectedAlgo[algoCount]; for(int z=0; z < algoCount; z++) { selectedAlgo[z] = false; } int selectedCount = 0; - for (i=0;i