postgres.git / summary / log / commit / refs
commit 0557dc276f1022965f72dc8bcfc820dfd83a7dc2
Author: Andrew Dunstan <andrew@dunslane.net>
Date: Mon Sep 28 22:42:30 2015 +0000
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;
[parent: 8a0aa686f41f]