Skip to content

Commit

Permalink
Fix gcc-11 warnings that are popping-up when building on debian sid. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DimCitus committed Nov 9, 2021
1 parent 31593a6 commit fc92546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/pg_autoctl/watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ print_watch_footer(WatchContext *context)

attron(A_STANDOUT);

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

attroff(A_STANDOUT);

Expand Down Expand Up @@ -1411,7 +1411,7 @@ print_event(WatchContext *context, EventColPolicy *policy, int index, int r, int
{
case EVENT_COLUMN_TYPE_ID:
{
mvprintw(r, cc, "%*d", len, event->eventId);
mvprintw(r, cc, "%*lld", len, (long long) event->eventId);
break;
}

Expand Down

0 comments on commit fc92546

Please sign in to comment.