From 5caa3479c2efd31fca1b271db687e5e57c7de2d4 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 11 Apr 2011 22:28:45 +0300 Subject: 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. --- src/interfaces/libpq/fe-auth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/interfaces/libpq/fe-auth.c') diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 45e39e08e30..6f1a163a100 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -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); -- cgit v1.2.3