Fix warnings about unused variables

This commit is contained in:
Tobias Hunger authored and Colin Walters committed 2013-08-30 14:23:45 -04:00
1 parent 4cdd444dcf
commit ed56908ccb
24 files changed
+1 -78

No files matched your search

-3
View File
@@ -163,7 +163,6 @@ ostree_validate_rev (const char *rev,
GError **error)
{
gboolean ret = FALSE;
gs_unref_ptrarray GPtrArray *components = NULL;
GMatchInfo *match = NULL;
static gsize regex_initialized;
@@ -630,7 +629,6 @@ ostree_content_stream_parse (gboolean compressed,
guchar dummy[4];
gsize bytes_read;
gs_unref_object GInputStream *ret_input = NULL;
gs_unref_object GFileInfo *content_file_info = NULL;
gs_unref_object GFileInfo *ret_file_info = NULL;
gs_unref_variant GVariant *ret_xattrs = NULL;
gs_unref_variant GVariant *file_header = NULL;
@@ -1664,7 +1662,6 @@ ostree_create_temp_file_from_input (GFile *dir,
GError *temp_error = NULL;
int i = 0;
gs_unref_object GFile *possible_file = NULL;
gs_free guchar *ret_csum = NULL;
/* 128 attempts seems reasonable... */
for (i = 0; i < 128; i++)
-2
View File
@@ -127,7 +127,6 @@ checkout_file_hardlink (OstreeRepo *self,
{
gboolean ret = FALSE;
gboolean ret_was_supported = FALSE;
gs_unref_object GFile *dir = NULL;
again:
if (dirfd != -1 &&
@@ -398,7 +397,6 @@ ostree_repo_checkout_tree (OstreeRepo *self,
GError **error)
{
gboolean ret = FALSE;
gs_unref_object GFileInfo *file_info = NULL;
gs_unref_variant GVariant *xattrs = NULL;
gs_unref_object GFileEnumerator *dir_enum = NULL;
-2
View File
@@ -844,7 +844,6 @@ ostree_repo_file_tree_query_child (OstreeRepoFile *self,
gs_unref_object GFileInfo *ret_info = NULL;
gs_unref_variant GVariant *files_variant = NULL;
gs_unref_variant GVariant *dirs_variant = NULL;
gs_unref_variant GVariant *tree_child_metadata = NULL;
gs_unref_variant GVariant *content_csum_v = NULL;
gs_unref_variant GVariant *meta_csum_v = NULL;
char tmp_checksum[65];
@@ -974,7 +973,6 @@ ostree_repo_file_read (GFile *file,
gboolean ret = FALSE;
OstreeRepoFile *self = OSTREE_REPO_FILE (file);
const char *checksum;
gs_unref_object GFile *local_file = NULL;
gs_unref_object GInputStream *ret_stream = NULL;
if (!ostree_repo_file_ensure_resolved (self, error))
-1
View File
@@ -127,7 +127,6 @@ ostree_repo_prune (OstreeRepo *self,
gpointer key, value;
gs_unref_hashtable GHashTable *objects = NULL;
gs_unref_hashtable GHashTable *all_refs = NULL;
gs_free char *formatted_freed_size = NULL;
OtPruneData data = { 0, };
gboolean refs_only = flags & OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY;
-15
View File
@@ -177,7 +177,6 @@ static gboolean
uri_fetch_update_status (gpointer user_data)
{
OtPullData *pull_data = user_data;
gs_free char *fetcher_status = NULL;
GString *status;
guint outstanding_stages;
guint outstanding_fetches;
@@ -354,9 +353,7 @@ fetch_uri_contents_utf8_sync (OtPullData *pull_data,
{
gboolean ret = FALSE;
gsize len;
gs_unref_object GFile *tmpf = NULL;
gs_free char *ret_contents = NULL;
gs_unref_object SoupRequest *request = NULL;
OstreeFetchUriSyncData fetch_data = { 0, };
if (g_cancellable_set_error_if_cancelled (cancellable, error))
@@ -401,7 +398,6 @@ scan_dirtree_object (OtPullData *pull_data,
gs_unref_variant GVariant *tree = NULL;
gs_unref_variant GVariant *files_variant = NULL;
gs_unref_variant GVariant *dirs_variant = NULL;
gs_unref_object GFile *stored_path = NULL;
if (recursion_depth > OSTREE_MAX_RECURSION)
{
@@ -454,7 +450,6 @@ scan_dirtree_object (OtPullData *pull_data,
const char *dirname;
gs_unref_variant GVariant *tree_csum = NULL;
gs_unref_variant GVariant *meta_csum = NULL;
gs_free char *tmp_checksum = NULL;
g_variant_get_child (dirs_variant, i, "(&s@ay@ay)",
&dirname, &tree_csum, &meta_csum);
@@ -561,10 +556,7 @@ content_fetch_on_complete (GObject *object,
GError **error = &local_error;
GCancellable *cancellable = NULL;
guint64 length;
gs_unref_variant GVariant *file_meta = NULL;
gs_unref_object GFileInfo *file_info = NULL;
gs_unref_object GInputStream *content_input = NULL;
gs_unref_object GInputStream *file_object_input = NULL;
gs_unref_variant GVariant *xattrs = NULL;
gs_unref_object GInputStream *file_in = NULL;
gs_unref_object GInputStream *object_input = NULL;
@@ -698,10 +690,8 @@ scan_commit_object (OtPullData *pull_data,
{
gboolean ret = FALSE;
gs_unref_variant GVariant *commit = NULL;
gs_unref_variant GVariant *related_objects = NULL;
gs_unref_variant GVariant *tree_contents_csum = NULL;
gs_unref_variant GVariant *tree_meta_csum = NULL;
gs_free char *tmp_checksum = NULL;
GVariantIter *iter = NULL;
if (recursion_depth > OSTREE_MAX_RECURSION)
@@ -1126,14 +1116,12 @@ ostree_repo_pull (OstreeRepo *self,
gboolean tls_permissive = FALSE;
OstreeFetcherConfigFlags fetcher_flags = 0;
gs_free char *remote_key = NULL;
gs_free char *remote_config_content = NULL;
gs_free char *path = NULL;
gs_free char *baseurl = NULL;
gs_free char *summary_data = NULL;
gs_unref_hashtable GHashTable *requested_refs_to_fetch = NULL;
gs_unref_hashtable GHashTable *updated_refs = NULL;
gs_unref_hashtable GHashTable *commits_to_fetch = NULL;
gs_free char *branch_rev = NULL;
gs_free char *remote_mode_str = NULL;
GSource *queue_src = NULL;
OtPullData pull_data_real = { 0, };
@@ -1308,9 +1296,6 @@ ostree_repo_pull (OstreeRepo *self,
{
const char *ref = key;
const char *sha256 = value;
gs_free char *key = NULL;
gs_free char *remote_ref = NULL;
gs_free char *baseurl = NULL;
ot_waitable_queue_push (pull_data->metadata_objects_to_scan,
pull_worker_message_new (PULL_MSG_SCAN,
-3
View File
@@ -283,11 +283,8 @@ resolve_refspec (OstreeRepo *self,
gboolean ret = FALSE;
__attribute__((unused)) GCancellable *cancellable = NULL;
GError *temp_error = NULL;
gs_free char *tmp = NULL;
gs_free char *tmp2 = NULL;
gs_free char *ret_rev = NULL;
gs_unref_object GFile *child = NULL;
gs_unref_object GFile *origindir = NULL;
g_return_val_if_fail (ref != NULL, FALSE);
-1
View File
@@ -156,7 +156,6 @@ ostree_repo_traverse_commit (OstreeRepo *repo,
while (TRUE)
{
gboolean recurse = FALSE;
gs_unref_variant GVariant *parent_csum_bytes = NULL;
gs_unref_variant GVariant *meta_csum_bytes = NULL;
gs_unref_variant GVariant *content_csum_bytes = NULL;
gs_unref_variant GVariant *key = NULL;
-5
View File
@@ -550,7 +550,6 @@ stage_object (OstreeRepo *self,
const char *actual_checksum;
gboolean do_commit;
OstreeRepoMode repo_mode;
gs_unref_object GFileInfo *temp_info = NULL;
gs_unref_object GFile *temp_file = NULL;
gs_unref_object GFile *raw_temp_file = NULL;
gs_unref_object GFile *stored_path = NULL;
@@ -832,7 +831,6 @@ scan_loose_devino (OstreeRepo *self,
guint i;
OstreeRepoMode repo_mode;
gs_unref_ptrarray GPtrArray *object_dirs = NULL;
gs_unref_object GFile *objdir = NULL;
if (self->parent_repo)
{
@@ -2095,7 +2093,6 @@ list_loose_objects (OstreeRepo *self,
gboolean ret = FALSE;
guint i;
gs_unref_ptrarray GPtrArray *object_dirs = NULL;
gs_unref_object GFile *objdir = NULL;
if (!get_loose_object_dirs (self, &object_dirs, cancellable, error))
goto out;
@@ -2203,9 +2200,7 @@ ostree_repo_load_file (OstreeRepo *self,
{
gboolean ret = FALSE;
OstreeRepoMode repo_mode;
gs_unref_variant GVariant *file_data = NULL;
gs_unref_object GFile *loose_path = NULL;
gs_unref_object GFileInfo *content_loose_info = NULL;
gs_unref_object GInputStream *ret_input = NULL;
gs_unref_object GFileInfo *ret_file_info = NULL;
gs_unref_variant GVariant *ret_xattrs = NULL;