Skip to content

Commit 92deedc

Browse files
authored
Fix format attribute for gp_fatal_log to avoid clang build warning (#1134)
Use pg_attribute_printf for gp_fatal_log format checking Replace GNU printf attribute with pg_attribute_printf macro for gp_fatal_log to improve code portability and consistency with PostgreSQL coding conventions.
1 parent 9f37357 commit 92deedc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bin/pg_upgrade/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ check_ok(void)
273273
* respected.
274274
*/
275275
void
276-
gp_fatal_log(const char *fmt,...) __attribute__ ((format (gnu_printf, 1, 2)));
276+
gp_fatal_log(const char *fmt,...) pg_attribute_printf(1, 2);
277277

278278
void
279279
gp_fatal_log(const char *fmt,...)

0 commit comments

Comments
 (0)