Skip to content

Commit fc92546

Browse files
authored
Fix gcc-11 warnings that are popping-up when building on debian sid. (#830)
1 parent 31593a6 commit fc92546

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bin/pg_autoctl/watch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ print_watch_footer(WatchContext *context)
670670

671671
attron(A_STANDOUT);
672672

673-
mvprintw(r, context->cols - strlen(help), help);
673+
mvprintw(r, context->cols - strlen(help), "%s", help);
674674

675675
attroff(A_STANDOUT);
676676

@@ -1411,7 +1411,7 @@ print_event(WatchContext *context, EventColPolicy *policy, int index, int r, int
14111411
{
14121412
case EVENT_COLUMN_TYPE_ID:
14131413
{
1414-
mvprintw(r, cc, "%*d", len, event->eventId);
1414+
mvprintw(r, cc, "%*lld", len, (long long) event->eventId);
14151415
break;
14161416
}
14171417

0 commit comments

Comments
 (0)