Fix unused variable warnings

tingping/wmclass
Alexander Larsson 2015-12-15 14:34:52 +01:00
parent 4342959f6d
commit 43a09b3646
11 changed files with 0 additions and 19 deletions

View File

@ -148,7 +148,6 @@ xdg_app_builtin_add_remote (int argc, char **argv,
g_autoptr(GOptionContext) context = NULL;
g_autoptr(XdgAppDir) dir = NULL;
g_autoptr(GVariantBuilder) optbuilder = NULL;
g_autoptr(GHashTable) refs = NULL;
g_autoptr(GFile) file = NULL;
g_autofree char *title = NULL;
g_autofree char *remote_url = NULL;

View File

@ -263,11 +263,9 @@ xdg_app_builtin_install_bundle (int argc, char **argv, GCancellable *cancellable
g_autoptr(GFile) deploy_base = NULL;
g_autoptr(GFile) file = NULL;
g_autoptr(GFile) gpg_tmp_file = NULL;
g_autoptr(GBytes) bytes = NULL;
const char *filename;
g_autofree char *ref = NULL;
g_autofree char *origin = NULL;
g_autofree char *checksum = NULL;
gboolean created_deploy_base = FALSE;
gboolean added_remote = FALSE;
g_autofree char *to_checksum = NULL;

View File

@ -56,7 +56,6 @@ xdg_app_builtin_ls_remote (int argc, char **argv, GCancellable *cancellable, GEr
g_autoptr(GPtrArray) names = NULL;
int i;
const char *repository;
g_autofree char *url = NULL;
context = g_option_context_new (" REMOTE - Show available runtimes and applications");

View File

@ -376,7 +376,6 @@ builder_cache_get_changes (BuilderCache *self,
g_autoptr(GFile) parent_root = NULL;
g_autoptr(GFile) parent_files = NULL;
g_autoptr(GVariant) variant = NULL;
g_autoptr(GHashTable) owned = NULL;
g_autofree char *parent_commit = NULL;
int i;

View File

@ -541,10 +541,7 @@ builder_manifest_init_app_dir (BuilderManifest *self,
{
GFile *app_dir = builder_context_get_app_dir (context);
g_autofree char *app_dir_path = g_file_get_path (app_dir);
g_autoptr(GSubprocessLauncher) launcher = NULL;
g_autoptr(GSubprocess) subp = NULL;
g_autofree char *cwd = NULL;
g_autoptr(GPtrArray) args = NULL;
if (self->app_id == NULL)
{
@ -782,7 +779,6 @@ foreach_file_helper (BuilderManifest *self,
GError **error)
{
g_auto(GLnxDirFdIterator) source_iter = {0};
glnx_fd_close int destination_dfd = -1;
struct dirent *dent;
g_autoptr(GError) my_error = NULL;
@ -798,7 +794,6 @@ foreach_file_helper (BuilderManifest *self,
while (TRUE)
{
struct stat stbuf;
g_autofree char *source_printable = NULL;
if (!glnx_dirfd_iterator_next_dent (&source_iter, &dent, NULL, error))
return FALSE;

View File

@ -301,7 +301,6 @@ builder_options_deserialize_property (JsonSerializable *serializable,
else if (JSON_NODE_TYPE (property_node) == JSON_NODE_OBJECT)
{
JsonObject *object = json_node_get_object (property_node);
g_autoptr(GPtrArray) env = g_ptr_array_new_with_free_func (g_free);
g_autoptr(GHashTable) hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
g_autoptr(GList) members = NULL;
GList *l;

View File

@ -420,8 +420,6 @@ builder_source_file_update (BuilderSource *source,
{
BuilderSourceFile *self = BUILDER_SOURCE_FILE (source);
g_autoptr(GFile) src = NULL;
g_autoptr(GFile) dest_file = NULL;
g_autofree char *dest_filename = NULL;
gboolean is_local, is_inline;
src = get_source_file (self, context, &is_local, &is_inline, error);

View File

@ -373,7 +373,6 @@ builder_source_git_download (BuilderSource *source,
GError **error)
{
BuilderSourceGit *self = BUILDER_SOURCE_GIT (source);
g_autoptr(GFile) mirror_dir = NULL;
g_autofree char *url = NULL;
url = get_url (self, context, error);

View File

@ -289,9 +289,6 @@ xdg_app_dir_load_override (XdgAppDir *self,
GKeyFile *
xdg_app_load_override_keyfile (const char *app_id, gboolean user, GError **error)
{
g_autoptr(GFile) base_dir = NULL;
g_autoptr(GFile) override_dir = NULL;
g_autoptr(GFile) file = NULL;
g_autofree char *metadata_contents = NULL;
gsize metadata_size;
g_autoptr(GKeyFile) metakey = g_key_file_new ();

View File

@ -336,7 +336,6 @@ xdg_app_installation_load_app_overrides (XdgAppInstallation *self,
GError **error)
{
XdgAppInstallationPrivate *priv = xdg_app_installation_get_instance_private (self);
g_autoptr(GBytes) bytes = NULL;
g_autofree char *metadata_contents = NULL;
gsize metadata_size;

View File

@ -235,7 +235,6 @@ xdg_app_remote_fetch_ref_sync (XdgAppRemote *self,
GError **error)
{
XdgAppRemotePrivate *priv = xdg_app_remote_get_instance_private (self);
g_autoptr(GPtrArray) refs = g_ptr_array_new_with_free_func (g_object_unref);
g_autoptr(GHashTable) ht = NULL;
g_autofree char *ref = NULL;
const char *checksum;