@@ -290,7 +290,7 @@ static VISA_PredVar *readPreVarNG(unsigned &bytePos, const char *buf,
290290 RoutineContainer &container) {
291291 vISA_ASSERT_INPUT (buf != nullptr , " Argument Exception: argument buf is NULL." );
292292
293- uint8_t tag = 0 ;
293+ [[maybe_unused]] uint8_t tag = 0 ;
294294 READ_CISA_FIELD (tag, uint8_t , bytePos, buf);
295295
296296 uint16_t index = 0 ;
@@ -2448,7 +2448,6 @@ static void
24482448readInstructionLscUntypedAppendCounterAtomic (LSC_OP subOpcode,
24492449 unsigned &bytePos, const char *buf,
24502450 RoutineContainer &container) {
2451- const LscOpInfo opInfo = LscOpInfoGet (subOpcode);
24522451
24532452 VISA_EMask_Ctrl execMask = vISA_EMASK_M1;
24542453 VISA_Exec_Size execSize = EXEC_SIZE_ILLEGAL;
@@ -2701,9 +2700,9 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
27012700 VISA_GenVar *decl = NULL ;
27022701 VISA_Type varType = (VISA_Type)((var->bit_properties ) & 0xF );
27032702 VISA_Align varAlign = (VISA_Align)((var->bit_properties >> 4 ) & 0xF );
2704- uint8_t aliasScopeSpecifier =
2703+ [[maybe_unused]] uint8_t aliasScopeSpecifier =
27052704 header.variables [declID].alias_scope_specifier ;
2706- int status = VISA_SUCCESS;
2705+ [[maybe_unused]] int status = VISA_SUCCESS;
27072706
27082707 vISA_ASSERT (aliasScopeSpecifier == 0 ,
27092708 " file scope variables are no longer supported" );
@@ -2761,7 +2760,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
27612760 // / VISA Builder Call
27622761 addr_info_t *var = &header.addresses [declID];
27632762 VISA_AddrVar *decl = NULL ;
2764- int status = kernelBuilderImpl->CreateVISAAddrVar (
2763+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAAddrVar (
27652764 decl, header.strings [var->name_index ], var->num_elements );
27662765 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA address variable." );
27672766
@@ -2800,7 +2799,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
28002799 // / VISA Builder Call
28012800 pred_info_t *var = &header.predicates [declID];
28022801 VISA_PredVar *decl = NULL ;
2803- int status = kernelBuilderImpl->CreateVISAPredVar (
2802+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAPredVar (
28042803 decl, header.strings [var->name_index ], var->num_elements );
28052804 vISA_ASSERT (VISA_SUCCESS == status,
28062805 " Failed to add VISA predicate vairable." );
@@ -2832,7 +2831,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
28322831 unsigned declID = i;
28332832 label_info_t *var = &header.labels [declID];
28342833 VISA_LabelOpnd *decl = NULL ;
2835- int status = kernelBuilderImpl->CreateVISALabelVar (
2834+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISALabelVar (
28362835 decl,
28372836 getDeclLabelString (" L" , var->name_index , header,
28382837 VISA_Label_Kind (var->kind ))
@@ -2877,7 +2876,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
28772876 unsigned declID = i;
28782877 state_info_t *var = &header.samplers [declID];
28792878 VISA_SamplerVar *decl = NULL ;
2880- int status = kernelBuilderImpl->CreateVISASamplerVar (
2879+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISASamplerVar (
28812880 decl, header.strings [var->name_index ], var->num_elements );
28822881 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA sampler variable." );
28832882
@@ -2925,7 +2924,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
29252924 unsigned declID = i;
29262925 state_info_t *var = &header.surfaces [declID];
29272926 VISA_SurfaceVar *decl = NULL ;
2928- int status = kernelBuilderImpl->CreateVISASurfaceVar (
2927+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISASurfaceVar (
29292928 decl, header.strings [var->name_index ], var->num_elements );
29302929 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA surface variable." );
29312930
@@ -2946,7 +2945,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
29462945 container.surfaceVarDecls [i] = decl;
29472946 }
29482947
2949- int vmeCount = 0 ;
2948+ [[maybe_unused]] int vmeCount = 0 ;
29502949 READ_CISA_FIELD (vmeCount, uint8_t , bytePos, buf);
29512950 vISA_ASSERT (vmeCount == 0 , " VME variable is no longer supported" );
29522951 header.vme_count = 0 ;
@@ -2986,7 +2985,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
29862985 vISA_ASSERT_UNREACHABLE (" Incorrect input variable type." );
29872986 }
29882987
2989- int status = kernelBuilderImpl->CreateVISAInputVar (
2988+ [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAInputVar (
29902989 decl, var->offset , var->size , var->getImplicitKind ());
29912990 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA input variable." );
29922991
0 commit comments