commit: Quiet clang-analyzer warning
authorColin Walters <walters@verbum.org>
Sat, 26 Aug 2023 16:26:39 +0000 (12:26 -0400)
committerColin Walters <walters@verbum.org>
Sat, 26 Aug 2023 16:26:39 +0000 (12:26 -0400)
This is just another instance of the "conditionally owned"
pattern.

src/libostree/ostree-repo-commit.c

index 92d09ad2d11756bb8e3f3aed829fd250d2f5a655..4563b0b7f98688750dfa99c7eb852f1596906a4c 100644 (file)
@@ -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);