Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4648ec7e
Commit
4648ec7e
authored
Mar 24, 2014
by
Matthias Braun
Browse files
fix 'never read' warnings
parent
c353ea5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bemodule.c
View file @
4648ec7e
...
...
@@ -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
;
...
...
ir/libcore/lc_opts_enum.c
View file @
4648ec7e
...
...
@@ -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); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment