Parcourir la source

test: Fix cmocka unused-parameter warnings

tytan652 il y a 3 ans
Parent
commit
580cf1163a
2 fichiers modifiés avec 4 ajouts et 0 suppressions
  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);