소스 검색

test: Fix cmocka unused-parameter warnings

tytan652 3 년 전
부모
커밋
580cf1163a
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      test/cmocka/test_bitstream.c
  2. 2 0
      test/cmocka/test_darray.c

+ 2 - 0
test/cmocka/test_bitstream.c

@@ -7,6 +7,8 @@
 
 static void bitstream_test(void **state)
 {
+	UNUSED_PARAMETER(state);
+
 	struct bitstream_reader reader;
 	uint8_t data[6] = {0x34, 0xff, 0xe1, 0x23, 0x91, 0x45};
 

+ 2 - 0
test/cmocka/test_darray.c

@@ -7,6 +7,8 @@
 
 static void array_basic_test(void **state)
 {
+	UNUSED_PARAMETER(state);
+
 	DARRAY(uint8_t) testarray;
 	da_init(testarray);