diff options
author | Dominic Sacré <dominic.sacre@gmx.de> | 2015-05-11 17:56:50 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-12-22 21:45:36 +0100 |
commit | af4cb669253c6520b06e82883c81450b8cc05264 (patch) | |
tree | 5946523965d6091947a16cf00486eebdc318d69f /src/usbg.c | |
parent | e2bd9bb192a4652e8a2900faa090434bbb61cfde (diff) | |
download | libusbg-af4cb669253c6520b06e82883c81450b8cc05264.tar.gz libusbg-af4cb669253c6520b06e82883c81450b8cc05264.tar.bz2 libusbg-af4cb669253c6520b06e82883c81450b8cc05264.zip |
libusbgx: Fix warnings when compiling with -Wall
Remove unused variables and duplicate const specifiers.
This makes libusbgx compile cleanly using -Wall with both gcc and clang.
Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Reviewed-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'src/usbg.c')
-rw-r--r-- | src/usbg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -275,7 +275,7 @@ int usbg_lookup_function_type(const char *name) return USBG_ERROR_NOT_FOUND; } -const const char *usbg_get_function_type_str(usbg_function_type type) +const char *usbg_get_function_type_str(usbg_function_type type) { return type >= USBG_FUNCTION_TYPE_MIN && type < USBG_FUNCTION_TYPE_MAX ? @@ -298,7 +298,7 @@ int usbg_lookup_gadget_attr(const char *name) return USBG_ERROR_NOT_FOUND; } -const const char *usbg_get_gadget_attr_str(usbg_gadget_attr attr) +const char *usbg_get_gadget_attr_str(usbg_gadget_attr attr) { return attr >= USBG_GADGET_ATTR_MIN && attr < USBG_GADGET_ATTR_MAX ? |