diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-02-19 11:15:55 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-12-22 20:35:21 +0100 |
commit | 2631010de53743454afae477ed3811b3d5472ad4 (patch) | |
tree | f5e49b5a66bcba8d6fc7b797f9acbe732e8c7c59 | |
parent | 93ab85191cdd7f1141b31da3ebf1dad70addc0c8 (diff) | |
download | libusbg-2631010de53743454afae477ed3811b3d5472ad4.tar.gz libusbg-2631010de53743454afae477ed3811b3d5472ad4.tar.bz2 libusbg-2631010de53743454afae477ed3811b3d5472ad4.zip |
libusbgx: Remove unused variables to make compiler happy.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r-- | examples/gadget-acm-ecm.c | 1 | ||||
-rw-r--r-- | examples/show-gadgets.c | 1 | ||||
-rw-r--r-- | src/usbg.c | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.c index b3c776d..5b027b6 100644 --- a/examples/gadget-acm-ecm.c +++ b/examples/gadget-acm-ecm.c @@ -31,7 +31,6 @@ int main(void) { usbg_state *s; usbg_gadget *g; - usbg_function *f; usbg_config *c; usbg_function *f_acm0, *f_acm1, *f_ecm; int ret = -EINVAL; diff --git a/examples/show-gadgets.c b/examples/show-gadgets.c index 9814039..7ba9687 100644 --- a/examples/show-gadgets.c +++ b/examples/show-gadgets.c @@ -125,7 +125,6 @@ int main(void) usbg_gadget *g; usbg_function *f; usbg_config *c; - usbg_binding *b; s = usbg_init("/sys/kernel/config"); if (!s) { @@ -110,14 +110,12 @@ const char *function_names[] = }; #define ERROR(msg, ...) do {\ - char *str;\ fprintf(stderr, "%s() "msg" \n", \ __func__, ##__VA_ARGS__);\ fflush(stderr);\ } while (0) #define ERRORNO(msg, ...) do {\ - char *str;\ fprintf(stderr, "%s() %s: "msg" \n", \ __func__, strerror(errno), ##__VA_ARGS__);\ fflush(stderr);\ |