From 05021a2c0cd212dbe9d7883e2d1677ba739653d5 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 24 Apr 2020 14:08:29 -0400 Subject: [PATCH] Try to avoid compiler warnings in optimized builds. Per report from Andres Freund, who also says that this fix works for him. Discussion: http://postgr.es/m/20200405193118.alprgmozhxcfabkw@alap3.anarazel.de --- src/bin/pg_verifybackup/parse_manifest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_verifybackup/parse_manifest.h b/src/bin/pg_verifybackup/parse_manifest.h index 49254bfb324..07e23979417 100644 --- a/src/bin/pg_verifybackup/parse_manifest.h +++ b/src/bin/pg_verifybackup/parse_manifest.h @@ -29,7 +29,8 @@ typedef void (*json_manifest_perwalrange_callback)(JsonManifestParseContext *, TimeLineID tli, XLogRecPtr start_lsn, XLogRecPtr end_lsn); typedef void (*json_manifest_error_callback)(JsonManifestParseContext *, - char *fmt, ...) pg_attribute_printf(2, 3); + char *fmt, ...) pg_attribute_printf(2, 3) + pg_attribute_noreturn(); struct JsonManifestParseContext {