aboutsummaryrefslogtreecommitdiff
path: root/notmuch-search.c
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2015-02-23 18:56:16 +0200
committerDavid Bremner <david@tethera.net>2015-02-25 23:11:08 +0100
commita9e0786f72bd01186b58b739986e7ac0680ff7c0 (patch)
tree4d4e6ab780f8c5a377259442c9a792138a73f7a5 /notmuch-search.c
parent08757767de5c148cea8e7b97274789f851fbd854 (diff)
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.
Diffstat (limited to 'notmuch-search.c')
-rw-r--r--notmuch-search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-search.c b/notmuch-search.c
index 14b9f01c..a591d45b 100644
--- a/notmuch-search.c
+++ b/notmuch-search.c
@@ -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 }
};