From: Andrew Dunstan Date: Mon, 28 Sep 2015 22:42:30 +0000 (-0400) Subject: Fix compiler warning for non-TIOCGWINSZ case X-Git-Tag: REL9_6_BETA1~1299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0557dc276f1022965f72dc8bcfc820dfd83a7dc2;p=postgresql Fix compiler warning for non-TIOCGWINSZ case Backpatch to 9.5 where the error was introduced. --- diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 74298cfe44..ad4350e1fe 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;