Skip to content

Commit ce1e60b

Browse files
Update test_cnullptr.c
1 parent 31075fa commit ce1e60b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

code/tests/cases/test_cnullptr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ FOSSIL_TEST_CASE(c_test_cunwrap_option) {
124124

125125
// Uncommenting the following line will trigger panic due to unwrapping a None value
126126
// ASSUME_ITS_EQUAL_PTR(cunwrap_option(none_option), cnull); // Should panic in actual code
127+
cunused(none_option); // avoid unused error
127128
}
128129

129130
// ** Test cunwrap_or_option Macro **
@@ -132,8 +133,6 @@ FOSSIL_TEST_CASE(c_test_cunwrap_or_option) {
132133
COption none_option = cnone();
133134
ASSUME_ITS_EQUAL_PTR(cunwrap_or_option(some_option, (void *)99), (void *)1);
134135
ASSUME_ITS_EQUAL_PTR(cunwrap_or_option(none_option, (void *)99), (void *)99);
135-
136-
cunused(none_option);
137136
}
138137

139138
// ** Test cdrop Macro **

0 commit comments

Comments
 (0)