We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31075fa commit ce1e60bCopy full SHA for ce1e60b
code/tests/cases/test_cnullptr.c
@@ -124,6 +124,7 @@ FOSSIL_TEST_CASE(c_test_cunwrap_option) {
124
125
// Uncommenting the following line will trigger panic due to unwrapping a None value
126
// ASSUME_ITS_EQUAL_PTR(cunwrap_option(none_option), cnull); // Should panic in actual code
127
+ cunused(none_option); // avoid unused error
128
}
129
130
// ** Test cunwrap_or_option Macro **
@@ -132,8 +133,6 @@ FOSSIL_TEST_CASE(c_test_cunwrap_or_option) {
132
133
COption none_option = cnone();
134
ASSUME_ITS_EQUAL_PTR(cunwrap_or_option(some_option, (void *)99), (void *)1);
135
ASSUME_ITS_EQUAL_PTR(cunwrap_or_option(none_option, (void *)99), (void *)99);
-
136
- cunused(none_option);
137
138
139
// ** Test cdrop Macro **
0 commit comments