kopia lustrzana https://github.com/stlink-org/stlink
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
rodzic
b0a477d2a7
commit
b014aebd63
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue