projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0a477d
)
Fix an unused parameter warning
author
Rob Spanton
<rspanton@zepler.net>
Mon, 23 Apr 2012 22:19:55 +0000
(23:19 +0100)
committer
Rob 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
patch
|
blob
|
history
diff --git
a/src/test_sg.c
b/src/test_sg.c
index 357f4366523fe5e4d4788a9bf3d7739c38685860..51b0f074ca6f3dbc0c14c7683a67c026f6896733 100644
(file)
--- a/
src/test_sg.c
+++ b/
src/test_sg.c
@@
-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) {