Skip to content

Commit 8f976f3

Browse files
committed
[A] Add macros maybe unusued
1 parent 6840de7 commit 8f976f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: tests/basic.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,15 @@ int base_switch_return_10(int switch_value)
212212
RETURN(i);
213213
}
214214

215-
215+
#define MAYBE_UNUSED(arg) (void)(arg)
216216

217217
int main(int argc, char *argv[])
218218
{
219-
(void)argc;
220-
(void)argv;
219+
MAYBE_UNUSED(argc);
220+
MAYBE_UNUSED(argv);
221221

222222
int result = 0;
223+
MAYBE_UNUSED(result);
223224

224225
/*
225226
* Base check

0 commit comments

Comments
 (0)