소스 검색

Fix unused param warning when GC is enabled (#3814)

palchikov 1 년 전
부모
커밋
86926aa9d2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      core/iwasm/interpreter/wasm.h

+ 3 - 0
core/iwasm/interpreter/wasm.h

@@ -1238,6 +1238,9 @@ wasm_value_type_size_internal(uint8 value_type, uint8 pointer_size)
     else {
         bh_assert(0);
     }
+#if WASM_ENABLE_GC == 0
+    (void)pointer_size;
+#endif
     return 0;
 }