Skip to content

Commit

Permalink
Fix an unused parameter warning
Browse files Browse the repository at this point in the history
test_sg.c's main doesn't use its argv parameter, and so the compiler
warns us this is the case.  This patch stops it from warning us.
  • Loading branch information
Rob Spanton committed Apr 23, 2012
1 parent b0a477d commit b014aeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test_sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ static void __attribute__((unused)) mark_buf(stlink_t *sl) {


int main(int argc, char *argv[]) {
/* Avoid unused parameter warning */
(void)argv;
// set scpi lib debug level: 0 for no debug info, 10 for lots

switch (argc) {
Expand Down

0 comments on commit b014aeb

Please sign in to comment.