Fix an unused parameter warning
authorRob Spanton <rspanton@zepler.net>
Mon, 23 Apr 2012 22:19:55 +0000 (23:19 +0100)
committerRob Spanton <rspanton@zepler.net>
Mon, 23 Apr 2012 22:21:29 +0000 (23:21 +0100)
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.

src/test_sg.c

index 357f4366523fe5e4d4788a9bf3d7739c38685860..51b0f074ca6f3dbc0c14c7683a67c026f6896733 100644 (file)
@@ -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) {