@@ -290,7 +290,7 @@ static VISA_PredVar *readPreVarNG(unsigned &bytePos, const char *buf,
290
290
RoutineContainer &container) {
291
291
vISA_ASSERT_INPUT (buf != nullptr , " Argument Exception: argument buf is NULL." );
292
292
293
- uint8_t tag = 0 ;
293
+ [[maybe_unused]] uint8_t tag = 0 ;
294
294
READ_CISA_FIELD (tag, uint8_t , bytePos, buf);
295
295
296
296
uint16_t index = 0 ;
@@ -2448,7 +2448,6 @@ static void
2448
2448
readInstructionLscUntypedAppendCounterAtomic (LSC_OP subOpcode,
2449
2449
unsigned &bytePos, const char *buf,
2450
2450
RoutineContainer &container) {
2451
- const LscOpInfo opInfo = LscOpInfoGet (subOpcode);
2452
2451
2453
2452
VISA_EMask_Ctrl execMask = vISA_EMASK_M1;
2454
2453
VISA_Exec_Size execSize = EXEC_SIZE_ILLEGAL;
@@ -2701,9 +2700,9 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2701
2700
VISA_GenVar *decl = NULL ;
2702
2701
VISA_Type varType = (VISA_Type)((var->bit_properties ) & 0xF );
2703
2702
VISA_Align varAlign = (VISA_Align)((var->bit_properties >> 4 ) & 0xF );
2704
- uint8_t aliasScopeSpecifier =
2703
+ [[maybe_unused]] uint8_t aliasScopeSpecifier =
2705
2704
header.variables [declID].alias_scope_specifier ;
2706
- int status = VISA_SUCCESS;
2705
+ [[maybe_unused]] int status = VISA_SUCCESS;
2707
2706
2708
2707
vISA_ASSERT (aliasScopeSpecifier == 0 ,
2709
2708
" file scope variables are no longer supported" );
@@ -2761,7 +2760,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2761
2760
// / VISA Builder Call
2762
2761
addr_info_t *var = &header.addresses [declID];
2763
2762
VISA_AddrVar *decl = NULL ;
2764
- int status = kernelBuilderImpl->CreateVISAAddrVar (
2763
+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAAddrVar (
2765
2764
decl, header.strings [var->name_index ], var->num_elements );
2766
2765
vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA address variable." );
2767
2766
@@ -2800,7 +2799,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2800
2799
// / VISA Builder Call
2801
2800
pred_info_t *var = &header.predicates [declID];
2802
2801
VISA_PredVar *decl = NULL ;
2803
- int status = kernelBuilderImpl->CreateVISAPredVar (
2802
+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAPredVar (
2804
2803
decl, header.strings [var->name_index ], var->num_elements );
2805
2804
vISA_ASSERT (VISA_SUCCESS == status,
2806
2805
" Failed to add VISA predicate vairable." );
@@ -2832,7 +2831,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2832
2831
unsigned declID = i;
2833
2832
label_info_t *var = &header.labels [declID];
2834
2833
VISA_LabelOpnd *decl = NULL ;
2835
- int status = kernelBuilderImpl->CreateVISALabelVar (
2834
+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISALabelVar (
2836
2835
decl,
2837
2836
getDeclLabelString (" L" , var->name_index , header,
2838
2837
VISA_Label_Kind (var->kind ))
@@ -2877,7 +2876,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2877
2876
unsigned declID = i;
2878
2877
state_info_t *var = &header.samplers [declID];
2879
2878
VISA_SamplerVar *decl = NULL ;
2880
- int status = kernelBuilderImpl->CreateVISASamplerVar (
2879
+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISASamplerVar (
2881
2880
decl, header.strings [var->name_index ], var->num_elements );
2882
2881
vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA sampler variable." );
2883
2882
@@ -2925,7 +2924,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2925
2924
unsigned declID = i;
2926
2925
state_info_t *var = &header.surfaces [declID];
2927
2926
VISA_SurfaceVar *decl = NULL ;
2928
- int status = kernelBuilderImpl->CreateVISASurfaceVar (
2927
+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISASurfaceVar (
2929
2928
decl, header.strings [var->name_index ], var->num_elements );
2930
2929
vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA surface variable." );
2931
2930
@@ -2946,7 +2945,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2946
2945
container.surfaceVarDecls [i] = decl;
2947
2946
}
2948
2947
2949
- int vmeCount = 0 ;
2948
+ [[maybe_unused]] int vmeCount = 0 ;
2950
2949
READ_CISA_FIELD (vmeCount, uint8_t , bytePos, buf);
2951
2950
vISA_ASSERT (vmeCount == 0 , " VME variable is no longer supported" );
2952
2951
header.vme_count = 0 ;
@@ -2986,7 +2985,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
2986
2985
vISA_ASSERT_UNREACHABLE (" Incorrect input variable type." );
2987
2986
}
2988
2987
2989
- int status = kernelBuilderImpl->CreateVISAInputVar (
2988
+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAInputVar (
2990
2989
decl, var->offset , var->size , var->getImplicitKind ());
2991
2990
vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA input variable." );
2992
2991
0 commit comments