summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2014-02-19 11:15:55 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2015-12-22 20:35:21 +0100
commit2631010de53743454afae477ed3811b3d5472ad4 (patch)
treef5e49b5a66bcba8d6fc7b797f9acbe732e8c7c59
parent93ab85191cdd7f1141b31da3ebf1dad70addc0c8 (diff)
downloadlibusbg-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.c1
-rw-r--r--examples/show-gadgets.c1
-rw-r--r--src/usbg.c2
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) {
diff --git a/src/usbg.c b/src/usbg.c
index 5e803f1..91165b8 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -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);\