Fix some Wunused-but-set warnings (#1666)

To the best of my understanding, these occurrences of the
`-Wunused-but-set` warnings do not reveal any underlying issues, so we
can safely remove these variables.  There are more occurrences of this
warning in other places (not touched by this commit) that require
further analysis.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2023-03-30 09:34:00 +01:00
committed by GitHub
parent 8e74722a0a
commit a70fa56003
12 changed files with 3 additions and 42 deletions

View File

@@ -337,7 +337,6 @@ static int create_shuffle_kernel( cl_context context, cl_program *outProgram, cl
MTdata d, ShuffleMode shuffleMode = kNormalMode )
{
char inOrder[18], shuffledOrder[18];
size_t typeSize;
char kernelSource[MAX_PROGRAM_SIZE], progLine[ 10240 ];
char *programPtr;
char inSizeName[4], outSizeName[4], outRealSizeName[4], inSizeArgName[4];
@@ -354,9 +353,6 @@ static int create_shuffle_kernel( cl_context context, cl_program *outProgram, cl
else
strcpy( inSizeArgName, inSizeName );
typeSize = get_explicit_type_size( vecType );
*outRealVecSize = outVecSize;
if( outVecSize == 1 || (outVecSize == 3))