* fix a few compiler warnings

This commit is contained in:
djcb 2013-05-13 22:30:27 +03:00
parent ba2a56a9dd
commit 4174ac7ed2
4 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,7 @@
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software Foundation,
** along with this program; if not, write to 59the Free Software Foundation,
** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**
*/
@ -656,6 +656,8 @@ mu_maildir_get_flags_from_path (const char *path)
dir = g_path_get_dirname (path);
dir2 = g_path_get_basename (dir);
flags = MU_FLAG_NONE;
if (g_strcmp0 (dir2, "new") == 0)
flags = MU_FLAG_NEW;

View File

@ -81,7 +81,10 @@ mu_runtime_init (const char* muhome_arg, const char *name)
g_return_val_if_fail (name, FALSE);
setlocale (LC_ALL, "");
#ifndef GLIB_VERSION_2_36
g_type_init ();
#endif /*GLIB_VERSION_2_36*/
if (muhome_arg)
muhome = g_strdup (muhome_arg);

View File

@ -805,6 +805,8 @@ cmd_extract (ServerContext *ctx, GSList *args, GError **err)
MuError rv;
const char* actionstr, *indexstr;
rv = MU_ERROR;
/* read parameters */
GET_STRING_OR_ERROR_RETURN (args, "action", &actionstr, err);
GET_STRING_OR_ERROR_RETURN (args, "index", &indexstr, err);

View File

@ -87,7 +87,10 @@ main (int argc, char *argv[])
MuConfig *conf;
setlocale (LC_ALL, "");
#ifndef GLIB_VERSION_2_36
g_type_init ();
#endif /*GLIB_VERSION_2_36*/
err = NULL;
rv = MU_OK;