Commit 4648ec7e authored by Matthias Braun's avatar Matthias Braun
Browse files

fix 'never read' warnings

parent c353ea5c
......@@ -138,12 +138,14 @@ typedef struct module_opt_data_t {
} module_opt_data_t;
/**
* Searches in list for module option. If found, set option to given value and return true.
* Searches in list for module option. If found, set option to given value and
* return true.
* Beware: return value of 0 means error.
*/
static bool set_opt_module(const char *name, lc_opt_type_t type, void *data,
size_t length, ...)
{
(void)length;
module_opt_data_t *moddata = (module_opt_data_t*)data;
bool res = false;
va_list args;
......
......@@ -25,6 +25,7 @@ bool lc_opt_enum_ ## N ## _cb(const char *name, lc_opt_type_t type, void *data,
const char *arg; \
bool res = false; \
\
(void) len; \
(void) name; \
(void) type; \
va_start(args, len); \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment