Fix an unused parameter warning

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.
pull/73/head
Rob Spanton 2012-04-23 23:19:55 +01:00
rodzic b0a477d2a7
commit b014aebd63
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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) {