forked from Mirrors/flatpak-builder
Remove ununsed variables reported by clang
parent
42012a7d5a
commit
52525f46fd
|
@ -313,8 +313,6 @@ xdg_app_builtin_build_finish (int argc, char **argv, GCancellable *cancellable,
|
|||
g_autoptr(GFile) files_dir = NULL;
|
||||
g_autoptr(GFile) export_dir = NULL;
|
||||
g_autoptr(GFile) metadata_file = NULL;
|
||||
g_autoptr(XdgAppDir) user_dir = NULL;
|
||||
g_autoptr(XdgAppDir) system_dir = NULL;
|
||||
g_autofree char *metadata_contents = NULL;
|
||||
g_autofree char *app_id = NULL;
|
||||
gsize metadata_size;
|
||||
|
|
|
@ -45,8 +45,6 @@ xdg_app_builtin_build_init (int argc, char **argv, GCancellable *cancellable, GE
|
|||
{
|
||||
gboolean ret = FALSE;
|
||||
GOptionContext *context;
|
||||
g_autoptr(GFile) runtime_deploy_base = NULL;
|
||||
g_autoptr(GFile) sdk_deploy_base = NULL;
|
||||
g_autoptr(GFile) var_deploy_base = NULL;
|
||||
g_autoptr(GFile) var_deploy_files = NULL;
|
||||
g_autoptr(GFile) base = NULL;
|
||||
|
|
|
@ -45,26 +45,17 @@ xdg_app_builtin_build (int argc, char **argv, GCancellable *cancellable, GError
|
|||
{
|
||||
GOptionContext *context;
|
||||
gboolean ret = FALSE;
|
||||
g_autoptr(XdgAppDir) user_dir = NULL;
|
||||
g_autoptr(XdgAppDeploy) runtime_deploy = NULL;
|
||||
g_autoptr(GVariantBuilder) optbuilder = NULL;
|
||||
g_autoptr(GFile) deploy_base = NULL;
|
||||
g_autoptr(GFile) var = NULL;
|
||||
g_autoptr(GFile) var_tmp = NULL;
|
||||
g_autoptr(GFile) var_run = NULL;
|
||||
g_autoptr(GFile) app_deploy = NULL;
|
||||
g_autoptr(GFile) app_files = NULL;
|
||||
g_autoptr(GFile) runtime_files = NULL;
|
||||
g_autoptr(GFile) metadata = NULL;
|
||||
g_autofree char *metadata_contents = NULL;
|
||||
g_autofree char *runtime = NULL;
|
||||
g_autofree char *default_command = NULL;
|
||||
g_autofree char *runtime_ref = NULL;
|
||||
g_autofree char *app_ref = NULL;
|
||||
g_autoptr(GKeyFile) metakey = NULL;
|
||||
g_autoptr(GKeyFile) runtime_metakey = NULL;
|
||||
g_autoptr (GError) my_error = NULL;
|
||||
g_autoptr (GError) my_error2 = NULL;
|
||||
g_autoptr(GPtrArray) argv_array = NULL;
|
||||
glnx_strfreev char **envp = NULL;
|
||||
gsize metadata_size;
|
||||
|
|
|
@ -54,8 +54,6 @@ static gboolean
|
|||
print_installed_refs (const char *kind, gboolean print_system, gboolean print_user, GCancellable *cancellable, GError **error)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
glnx_strfreev gchar **refs = NULL;
|
||||
g_autofree char *last_ref = NULL;
|
||||
g_autofree char *last = NULL;
|
||||
glnx_strfreev char **system = NULL;
|
||||
glnx_strfreev char **user = NULL;
|
||||
|
@ -158,8 +156,6 @@ xdg_app_builtin_list_runtimes (int argc, char **argv, GCancellable *cancellable,
|
|||
{
|
||||
gboolean ret = FALSE;
|
||||
GOptionContext *context;
|
||||
glnx_strfreev char **system = NULL;
|
||||
glnx_strfreev char **user = NULL;
|
||||
|
||||
context = g_option_context_new (" - List installed runtimes");
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ xdg_app_builtin_make_current_app (int argc, char **argv, GCancellable *cancellab
|
|||
GOptionContext *context;
|
||||
g_autoptr(XdgAppDir) dir = NULL;
|
||||
g_autoptr(GFile) deploy_base = NULL;
|
||||
g_autoptr(GFile) origin = NULL;
|
||||
const char *app;
|
||||
const char *branch = "master";
|
||||
g_autofree char *ref = NULL;
|
||||
|
|
|
@ -60,7 +60,6 @@ xdg_app_builtin_repo_contents (int argc, char **argv, GCancellable *cancellable,
|
|||
int i;
|
||||
const char *repository;
|
||||
g_autofree char *url = NULL;
|
||||
g_autoptr(GBytes) bytes = NULL;
|
||||
|
||||
context = g_option_context_new (" REPOSITORY - Show available runtimes and applications");
|
||||
|
||||
|
|
|
@ -147,8 +147,6 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
|
|||
{
|
||||
GOptionContext *context;
|
||||
gboolean ret = FALSE;
|
||||
g_autoptr(GVariantBuilder) optbuilder = NULL;
|
||||
g_autoptr(GFile) deploy_base = NULL;
|
||||
g_autoptr(XdgAppDeploy) app_deploy = NULL;
|
||||
g_autoptr(XdgAppDeploy) runtime_deploy = NULL;
|
||||
g_autoptr(GFile) app_files = NULL;
|
||||
|
@ -163,7 +161,6 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
|
|||
g_autofree char *default_command = NULL;
|
||||
g_autofree char *runtime_ref = NULL;
|
||||
g_autofree char *app_ref = NULL;
|
||||
g_autofree char *path = NULL;
|
||||
g_autofree char *doc_mount_path = NULL;
|
||||
g_autoptr(GKeyFile) metakey = NULL;
|
||||
g_autoptr(GKeyFile) runtime_metakey = NULL;
|
||||
|
|
|
@ -761,7 +761,6 @@ xdp_fuse_opendir (fuse_req_t req,
|
|||
XdpInodeClass class;
|
||||
guint64 class_ino;
|
||||
g_autoptr (XdgAppDbEntry) entry = NULL;
|
||||
g_autofree char *basename = NULL;
|
||||
int res;
|
||||
|
||||
g_debug ("xdp_fuse_opendir %lx", ino);
|
||||
|
|
|
@ -104,7 +104,6 @@ portal_grant_permissions (GDBusMethodInvocation *invocation,
|
|||
{
|
||||
const char *target_app_id;
|
||||
const char *id;
|
||||
g_autoptr(GError) error = NULL;
|
||||
g_autofree const char **permissions = NULL;
|
||||
XdpPermissionFlags perms;
|
||||
g_autoptr(XdgAppDbEntry) entry = NULL;
|
||||
|
@ -148,7 +147,6 @@ portal_revoke_permissions (GDBusMethodInvocation *invocation,
|
|||
const char *app_id)
|
||||
{
|
||||
const char *target_app_id;
|
||||
g_autoptr(GError) error = NULL;
|
||||
const char *id;
|
||||
g_autofree const char **permissions = NULL;
|
||||
g_autoptr(XdgAppDbEntry) entry = NULL;
|
||||
|
@ -225,9 +223,7 @@ char *
|
|||
do_create_doc (const char *path)
|
||||
{
|
||||
g_autoptr(GVariant) data = g_variant_ref_sink (g_variant_new_bytestring (path));
|
||||
g_autofree char *existing_id = NULL;
|
||||
g_autoptr (XdgAppDbEntry) entry = NULL;
|
||||
g_autofree char *new_id = NULL;
|
||||
glnx_strfreev char **ids = NULL;
|
||||
char *id = NULL;
|
||||
|
||||
|
@ -524,7 +520,6 @@ main (int argc,
|
|||
{
|
||||
guint owner_id;
|
||||
GBytes *introspection_bytes;
|
||||
g_autoptr(GList) object_types = NULL;
|
||||
g_autoptr(GError) error = NULL;
|
||||
g_autofree char *path = NULL;
|
||||
GDBusConnection *session_bus;
|
||||
|
|
|
@ -53,7 +53,6 @@ XdpPermissionFlags
|
|||
xdp_get_permissions (XdgAppDbEntry *entry,
|
||||
const char *app_id)
|
||||
{
|
||||
g_autoptr(GVariant) app_array = NULL;
|
||||
g_autofree const char **permissions = NULL;
|
||||
|
||||
if (strcmp (app_id, "") == 0)
|
||||
|
|
|
@ -455,7 +455,6 @@ char **
|
|||
xdg_app_db_list_ids_by_app (XdgAppDb *self,
|
||||
const char *app)
|
||||
{
|
||||
g_autofree char **apps = NULL;
|
||||
GPtrArray *res;
|
||||
GPtrArray *additions;
|
||||
GPtrArray *removals;
|
||||
|
|
|
@ -1077,8 +1077,6 @@ rewrite_export_dir (const char *app,
|
|||
}
|
||||
else if (S_ISREG (stbuf.st_mode))
|
||||
{
|
||||
g_autofree gchar *target = NULL;
|
||||
|
||||
if (!xdg_app_has_name_prefix (dent->d_name, app))
|
||||
{
|
||||
g_warning ("Non-prefixed filename %s in app %s, removing.\n", dent->d_name, app);
|
||||
|
|
|
@ -214,9 +214,7 @@ handle_delete (XdgAppPermissionStore *object,
|
|||
const gchar *id)
|
||||
{
|
||||
Table *table;
|
||||
g_autoptr(GVariant) data = NULL;
|
||||
g_autoptr(XdgAppDbEntry) entry = NULL;
|
||||
g_autofree const char **apps = NULL;
|
||||
|
||||
table = lookup_table (table_name, invocation);
|
||||
if (table == NULL)
|
||||
|
|
|
@ -265,7 +265,6 @@ test_modify (void)
|
|||
g_autoptr(XdgAppDbEntry) entry5 = NULL;
|
||||
g_autoptr(XdgAppDbEntry) entry6 = NULL;
|
||||
g_autoptr(XdgAppDbEntry) entry7 = NULL;
|
||||
g_autofree const char **apps1 = NULL;
|
||||
g_autofree const char **apps2 = NULL;
|
||||
glnx_strfreev char **apps3 = NULL;
|
||||
g_autofree const char **permissions1 = NULL;
|
||||
|
@ -309,7 +308,6 @@ test_modify (void)
|
|||
g_autoptr(XdgAppDbEntry) entry5 = NULL;
|
||||
g_autoptr(XdgAppDbEntry) entry6 = NULL;
|
||||
g_autoptr(XdgAppDbEntry) entry7 = NULL;
|
||||
g_autofree const char **apps1 = NULL;
|
||||
g_autofree const char **apps2 = NULL;
|
||||
glnx_strfreev char **apps3 = NULL;
|
||||
g_autofree const char **permissions1 = NULL;
|
||||
|
|
Loading…
Reference in New Issue