Try to avoid compiler warnings in optimized builds.
authorRobert Haas <rhaas@postgresql.org>
Fri, 24 Apr 2020 18:08:29 +0000 (14:08 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 24 Apr 2020 18:11:45 +0000 (14:11 -0400)
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

index 49254bfb3241a7b1c47cb908fd4adcfc98fa6fc5..07e239794175163888619cc0e44bb77c532c4a78 100644 (file)
@@ -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
 {