Fix gcc warnings

svn path=/trunk/; revision=7585
This commit is contained in:
Matthias Clasen
2008-10-10 04:54:51 +00:00
parent 65ac7d4034
commit 6310f898b8
9 changed files with 44 additions and 25 deletions

View File

@@ -65,9 +65,9 @@ unquote_string_inplace (gchar* str, gchar** end, GError** err)
if (!(*s == '"' || *s == '\''))
{
if (err)
*err = g_error_new(G_SHELL_ERROR,
G_SHELL_ERROR_BAD_QUOTING,
_("Quoted text doesn't begin with a quotation mark"));
*err = g_error_new_literal (G_SHELL_ERROR,
G_SHELL_ERROR_BAD_QUOTING,
_("Quoted text doesn't begin with a quotation mark"));
*end = str;
return FALSE;
}
@@ -155,9 +155,9 @@ unquote_string_inplace (gchar* str, gchar** end, GError** err)
*dest = '\0';
if (err)
*err = g_error_new(G_SHELL_ERROR,
G_SHELL_ERROR_BAD_QUOTING,
_("Unmatched quotation mark in command line or other shell-quoted text"));
*err = g_error_new_literal (G_SHELL_ERROR,
G_SHELL_ERROR_BAD_QUOTING,
_("Unmatched quotation mark in command line or other shell-quoted text"));
*end = s;
return FALSE;
}