pull: 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 17:51:22 +0000 (13:51 -0400)
Just used for side-effects.

src/libostree/ostree-repo-pull.c

index 3e461e33702a95536bc25a1040169da52933b271..9ec9789183d3636e4ed827f7944a1f531444bc7d 100644 (file)
@@ -6340,6 +6340,7 @@ ostree_repo_remote_fetch_summary_with_options (OstreeRepo *self, const char *nam
     return FALSE;
 
   mainctx = _ostree_main_context_new_default ();
+  (void)mainctx; // Used for autocleanup
 
   fetcher = _ostree_repo_remote_new_fetcher (self, name, TRUE, extra_headers, append_user_agent,
                                              NULL, error);