mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Clean up most -Wunused-but-set-variable warnings from gcc 4.6
This warning is new in gcc 4.6 and part of -Wall. This patch cleans up most of the noise, but there are some still warnings that are trickier to remove.
This commit is contained in:
@@ -764,11 +764,8 @@ ECPGdescribe(int line, int compat, bool input, const char *connection_name, cons
|
||||
|
||||
for (;;)
|
||||
{
|
||||
enum ECPGttype type,
|
||||
dummy_type;
|
||||
void *ptr,
|
||||
*dummy_ptr;
|
||||
long dummy;
|
||||
enum ECPGttype type;
|
||||
void *ptr;
|
||||
|
||||
/* variable type */
|
||||
type = va_arg(args, enum ECPGttype);
|
||||
@@ -778,16 +775,16 @@ ECPGdescribe(int line, int compat, bool input, const char *connection_name, cons
|
||||
|
||||
/* rest of variable parameters */
|
||||
ptr = va_arg(args, void *);
|
||||
dummy = va_arg(args, long);
|
||||
dummy = va_arg(args, long);
|
||||
dummy = va_arg(args, long);
|
||||
va_arg(args, long); /* skip args */
|
||||
va_arg(args, long);
|
||||
va_arg(args, long);
|
||||
|
||||
/* variable indicator */
|
||||
dummy_type = va_arg(args, enum ECPGttype);
|
||||
dummy_ptr = va_arg(args, void *);
|
||||
dummy = va_arg(args, long);
|
||||
dummy = va_arg(args, long);
|
||||
dummy = va_arg(args, long);
|
||||
va_arg(args, enum ECPGttype);
|
||||
va_arg(args, void *); /* skip args */
|
||||
va_arg(args, long);
|
||||
va_arg(args, long);
|
||||
va_arg(args, long);
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -320,14 +320,13 @@ static void
|
||||
pg_GSS_error_int(PQExpBuffer str, const char *mprefix,
|
||||
OM_uint32 stat, int type)
|
||||
{
|
||||
OM_uint32 lmaj_s,
|
||||
lmin_s;
|
||||
OM_uint32 lmin_s;
|
||||
gss_buffer_desc lmsg;
|
||||
OM_uint32 msg_ctx = 0;
|
||||
|
||||
do
|
||||
{
|
||||
lmaj_s = gss_display_status(&lmin_s, stat, type,
|
||||
gss_display_status(&lmin_s, stat, type,
|
||||
GSS_C_NO_OID, &msg_ctx, &lmsg);
|
||||
appendPQExpBuffer(str, "%s: %s\n", mprefix, (char *) lmsg.value);
|
||||
gss_release_buffer(&lmin_s, &lmsg);
|
||||
|
||||
Reference in New Issue
Block a user