Skip to content

Commit dafcf88

Browse files
committed
Mark mystreamer variable as PG_USED_FOR_ASSERTS_ONLY
Silences warnings about unused variable, when built without asserts.
1 parent 02f9fd1 commit dafcf88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_basebackup/bbstreamer_file.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ create_file_for_extract(const char *filename, mode_t mode)
561561
static void
562562
bbstreamer_extractor_finalize(bbstreamer *streamer)
563563
{
564-
bbstreamer_extractor *mystreamer = (bbstreamer_extractor *) streamer;
564+
bbstreamer_extractor *mystreamer PG_USED_FOR_ASSERTS_ONLY
565+
= (bbstreamer_extractor *) streamer;
565566

566567
Assert(mystreamer->file == NULL);
567568
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy