diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-07-07 23:41:42 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-09 04:23:24 +0300 |
commit | 2174cbfa2fd153e7a77ba5ef7167d2bf99057330 (patch) | |
tree | f22f58f4a272b99d22b939fcd4fdeb27198680a5 /m_option.h | |
parent | 6794bca0e96ac288eab7248431080afe29152564 (diff) | |
download | mpv-2174cbfa2fd153e7a77ba5ef7167d2bf99057330.tar.bz2 mpv-2174cbfa2fd153e7a77ba5ef7167d2bf99057330.tar.xz |
cleanup: silence most of the clang warnings
Diffstat (limited to 'm_option.h')
-rw-r--r-- | m_option.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m_option.h b/m_option.h index b2f201c712..5fa503f0c7 100644 --- a/m_option.h +++ b/m_option.h @@ -515,6 +515,6 @@ int parse_timestring(const char *str, double *time, char endchar); #define OPT_SETTINGSLIST(optname, varname, flags, objlist) {optname, NULL, &m_option_type_obj_settings_list, flags, 0, 0, objlist, 1, offsetof(struct MPOpts, varname)} #define OPT_AUDIOFORMAT(optname, varname, flags) {optname, NULL, &m_option_type_afmt, flags, 0, 0, NULL, 1, offsetof(struct MPOpts, varname)} #define OPT_HELPER_REMOVEPAREN(...) __VA_ARGS__ -#define OPT_CHOICE(optname, varname, flags, choices) {optname, NULL, &m_option_type_choice, flags, 0, 0, &(const struct m_opt_choice_alternatives[]){OPT_HELPER_REMOVEPAREN choices, {NULL}}, 1, offsetof(struct MPOpts, varname)} +#define OPT_CHOICE(optname, varname, flags, choices) {optname, NULL, &m_option_type_choice, flags, 0, 0, (void *)&(const struct m_opt_choice_alternatives[]){OPT_HELPER_REMOVEPAREN choices, {NULL}}, 1, offsetof(struct MPOpts, varname)} #endif /* MPLAYER_M_OPTION_H */ |