Skip to content

Commit

Permalink
Avoid compiler warnings if 'command' and 'argument' are unused
Browse files Browse the repository at this point in the history
  • Loading branch information
rkday committed Apr 24, 2016
1 parent 33ad3bb commit 59cc09d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ int elems_to_args(Elements *elements, DocoptArgs *args, bool help,
Option *option;
int i;

(void)command;
(void)argument;

/* options */
for (i=0; i < elements->n_options; i++) {
option = &elements->options[i];
Expand Down

0 comments on commit 59cc09d

Please sign in to comment.