From 0557dc276f1022965f72dc8bcfc820dfd83a7dc2 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan <andrew@dunslane.net> Date: Mon, 28 Sep 2015 18:42:30 -0400 Subject: [PATCH] Fix compiler warning for non-TIOCGWINSZ case Backpatch to 9.5 where the error was introduced. --- src/bin/psql/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 74298cfe441..ad4350e1fe0 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -2747,10 +2747,10 @@ PageOutput(int lines, const printTableOpt *topt) { const char *pagerprog; FILE *pagerpipe; - unsigned short int pager = topt->pager; - int min_lines = topt->pager_min_lines; #ifdef TIOCGWINSZ + unsigned short int pager = topt->pager; + int min_lines = topt->pager_min_lines; int result; struct winsize screen_size; -- GitLab