lib/repo: [scan-build] Quiet a dead store warning
False positive, just add a pacifier.
This commit is contained in:
parent
a982dc97ea
commit
bc1980ca38
|
|
@ -1588,7 +1588,6 @@ ostree_repo_prepare_transaction (OstreeRepo *self,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_autoptr(_OstreeRepoAutoTransaction) txn = NULL;
|
|
||||||
guint64 reserved_bytes = 0;
|
guint64 reserved_bytes = 0;
|
||||||
|
|
||||||
g_return_val_if_fail (self->in_transaction == FALSE, FALSE);
|
g_return_val_if_fail (self->in_transaction == FALSE, FALSE);
|
||||||
|
|
@ -1596,7 +1595,8 @@ ostree_repo_prepare_transaction (OstreeRepo *self,
|
||||||
g_debug ("Preparing transaction in repository %p", self);
|
g_debug ("Preparing transaction in repository %p", self);
|
||||||
|
|
||||||
/* Set up to abort the transaction if we return early from this function. */
|
/* Set up to abort the transaction if we return early from this function. */
|
||||||
txn = self;
|
g_autoptr(_OstreeRepoAutoTransaction) txn = self;
|
||||||
|
(void) txn; /* Add use to silence static analysis */
|
||||||
|
|
||||||
memset (&self->txn.stats, 0, sizeof (OstreeRepoTransactionStats));
|
memset (&self->txn.stats, 0, sizeof (OstreeRepoTransactionStats));
|
||||||
|
|
||||||
|
|
@ -1652,7 +1652,7 @@ ostree_repo_prepare_transaction (OstreeRepo *self,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Success: do not abort the transaction when returning. */
|
/* Success: do not abort the transaction when returning. */
|
||||||
txn = NULL;
|
txn = NULL; (void) txn;
|
||||||
|
|
||||||
if (out_transaction_resume)
|
if (out_transaction_resume)
|
||||||
*out_transaction_resume = ret_transaction_resume;
|
*out_transaction_resume = ret_transaction_resume;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue