From 806206fac253a7bcb3e1bd7048d91da6c5dcb70c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 14 Oct 2019 14:24:18 +0000 Subject: [PATCH] repo: [scan-build]: Mark a variable used We're just using this to auto-free, quiet the static analysis. --- src/libostree/ostree-repo-commit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index 0aaebbdb..d057ea34 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -871,7 +871,10 @@ write_content_object (OstreeRepo *self, /* Give a null input if there's no content */ g_autoptr(GInputStream) null_input = NULL; if (!input) - null_input = input = g_memory_input_stream_new_from_data ("", 0, NULL); + { + null_input = input = g_memory_input_stream_new_from_data ("", 0, NULL); + (void) null_input; /* quiet static analysis */ + } checksum_input = ot_checksum_instream_new_with_start (input, G_CHECKSUM_SHA256, buf, len);