tree-wide: Remove unused variables detected by CLang
CLang finds these, whereas GCC treats having `__attribute__((cleanup))` as a use. This obsoletes https://github.com/ostreedev/ostree/pull/411 Closes: #548 Approved by: jlebon
This commit is contained in:
1 parent
82a4f56593
commit
b77edf24a3
24 files changed
-65
No files matched your search
@@ -110,7 +110,6 @@ test_ensure_dir (void)
|
||||
{
|
||||
glnx_unref_object OstreeMutableTree *tree = ostree_mutable_tree_new ();
|
||||
glnx_unref_object OstreeMutableTree *parent = NULL;
|
||||
g_autoptr(GPtrArray) split_path = NULL;
|
||||
GError *error = NULL;
|
||||
const char *dirname = "foo";
|
||||
const char *filename = "bar";
|
||||
@@ -129,8 +128,6 @@ static void
|
||||
test_replace_file (void)
|
||||
{
|
||||
glnx_unref_object OstreeMutableTree *tree = ostree_mutable_tree_new ();
|
||||
glnx_unref_object OstreeMutableTree *parent = NULL;
|
||||
g_autoptr(GPtrArray) split_path = NULL;
|
||||
GError *error = NULL;
|
||||
const char *filename = "bar";
|
||||
const char *checksum = "01234567890123456789012345678901";
|
||||
|
||||
Reference in new issue
Block a user