mirror of https://github.com/djcb/mu.git
mu: fix some compiler warnings
This commit is contained in:
parent
0fe41c8690
commit
72a1da9da8
|
@ -24,6 +24,7 @@ AM_CFLAGS= \
|
||||||
$(WARN_CFLAGS) \
|
$(WARN_CFLAGS) \
|
||||||
-Wno-format-nonliteral \
|
-Wno-format-nonliteral \
|
||||||
-Wno-switch-enum \
|
-Wno-switch-enum \
|
||||||
|
-Wno-suggest-attribute=format \
|
||||||
$(GMIME_CFLAGS) \
|
$(GMIME_CFLAGS) \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS) \
|
||||||
$(GUILE_CFLAGS)
|
$(GUILE_CFLAGS)
|
||||||
|
|
|
@ -308,8 +308,8 @@ gboolean
|
||||||
mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
|
mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
|
||||||
const char **args, GError **err)
|
const char **args, GError **err)
|
||||||
{
|
{
|
||||||
char *mainargs, *expr;
|
char *mainargs, *expr;
|
||||||
char *argv[] = {
|
const char * argv[] = {
|
||||||
"guile", "-l", NULL, "-c", NULL, NULL
|
"guile", "-l", NULL, "-c", NULL, NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -684,7 +684,7 @@ each_contact_check_if_personal (MuMsgContact *contact, MsgDoc *msgdoc)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Xapian::Document
|
static Xapian::Document
|
||||||
new_doc_from_message (MuStore *store, MuMsg *msg)
|
new_doc_from_message (MuStore *store, MuMsg *msg)
|
||||||
{
|
{
|
||||||
Xapian::Document doc;
|
Xapian::Document doc;
|
||||||
|
@ -738,7 +738,7 @@ update_threading_info (Xapian::WritableDatabase* db,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned
|
static unsigned
|
||||||
add_or_update_msg (MuStore *store, unsigned docid, MuMsg *msg, GError **err)
|
add_or_update_msg (MuStore *store, unsigned docid, MuMsg *msg, GError **err)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (store, MU_STORE_INVALID_DOCID);
|
g_return_val_if_fail (store, MU_STORE_INVALID_DOCID);
|
||||||
|
|
Loading…
Reference in New Issue