mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-18 09:15:56 +01:00
cli: fix clang build warnings
Fix the following warning produced by clang 3.5.0: notmuch-search.c:730:25: warning: initializing 'void *' with an expression of type 'const notmuch_opt_desc_t (*)[4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] { NOTMUCH_OPT_INHERIT, &common_options, NULL, 0, 0 }, ^~~~~~~~~~~~~~~ 1 warning generated.
This commit is contained in:
parent
08757767de
commit
a9e0786f72
1 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ notmuch_search_command (notmuch_config_t *config, int argc, char *argv[])
|
|||
{ NOTMUCH_OPT_INT, &ctx->offset, "offset", 'O', 0 },
|
||||
{ NOTMUCH_OPT_INT, &ctx->limit, "limit", 'L', 0 },
|
||||
{ NOTMUCH_OPT_INT, &ctx->dupe, "duplicate", 'D', 0 },
|
||||
{ NOTMUCH_OPT_INHERIT, &common_options, NULL, 0, 0 },
|
||||
{ NOTMUCH_OPT_INHERIT, (void *) &common_options, NULL, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
|
@ -727,7 +727,7 @@ notmuch_address_command (notmuch_config_t *config, int argc, char *argv[])
|
|||
(notmuch_keyword_t []){ { "true", NOTMUCH_EXCLUDE_TRUE },
|
||||
{ "false", NOTMUCH_EXCLUDE_FALSE },
|
||||
{ 0, 0 } } },
|
||||
{ NOTMUCH_OPT_INHERIT, &common_options, NULL, 0, 0 },
|
||||
{ NOTMUCH_OPT_INHERIT, (void *) &common_options, NULL, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue