Explorar o código

test: Fix cmocka unused-parameter warnings

tytan652 %!s(int64=3) %!d(string=hai) anos
pai
achega
580cf1163a
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  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);