From: Tom Lane Date: Tue, 12 Apr 2011 06:05:24 +0000 (-0400) Subject: Suppress compiler warnings about "value computed is not used". X-Git-Tag: REL9_1_BETA1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88543ecfec9c754b5f14b898bccbc68d941748b3;p=postgresql Suppress compiler warnings about "value computed is not used". The recent patch to remove gcc 4.6 warnings created some new ones, at least on my rather old gcc version. Try to make everybody happy by casting to "void" when we just want to discard the result. --- diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c index aecf11c658..5f56de0312 100644 --- a/src/interfaces/ecpg/ecpglib/descriptor.c +++ b/src/interfaces/ecpg/ecpglib/descriptor.c @@ -775,16 +775,16 @@ ECPGdescribe(int line, int compat, bool input, const char *connection_name, cons /* rest of variable parameters */ ptr = va_arg(args, void *); - va_arg(args, long); /* skip args */ - va_arg(args, long); - va_arg(args, long); + (void) va_arg(args, long); /* skip args */ + (void) va_arg(args, long); + (void) va_arg(args, long); /* variable indicator */ - va_arg(args, enum ECPGttype); - va_arg(args, void *); /* skip args */ - va_arg(args, long); - va_arg(args, long); - va_arg(args, long); + (void) va_arg(args, enum ECPGttype); + (void) va_arg(args, void *); /* skip args */ + (void) va_arg(args, long); + (void) va_arg(args, long); + (void) va_arg(args, long); switch (type) {