From: Colin Walters Date: Sat, 26 Aug 2023 16:26:39 +0000 (-0400) Subject: commit: Quiet clang-analyzer warning X-Git-Tag: archive/raspbian/2023.7-3+rpi1^2~16^2^2~39^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e2779a7cf71587e02d0c70c064e013b498418774;p=ostree.git commit: Quiet clang-analyzer warning This is just another instance of the "conditionally owned" pattern. --- diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index 92d09ad2..4563b0b7 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -1052,6 +1052,7 @@ write_content_object (OstreeRepo *self, const char *expected_checksum, GInputStr actual_checksum, error)) return FALSE; } + (void)actual_checksum_owned; // Just used to autofree if (checksum_payload_input) actual_payload_checksum = ot_checksum_instream_get_string (checksum_payload_input);