From patchwork Thu Aug 23 14:18:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 1367591 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E8E473FCAE for ; Thu, 23 Aug 2012 14:18:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758929Ab2HWOSe (ORCPT ); Thu, 23 Aug 2012 10:18:34 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:51215 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757638Ab2HWOSb (ORCPT ); Thu, 23 Aug 2012 10:18:31 -0400 Received: by ghrr11 with SMTP id r11so189129ghr.19 for ; Thu, 23 Aug 2012 07:18:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:x-gm-message-state; bh=bpjaktKadIx1V1iNOX81CFZBJQ5MsJEuw5p6X45PGFU=; b=R/LH/sio4QycpejdKQD4CRT+vFYLS4fA55ylfy1dwtVsRCSiZAwl6vYjeCdnxvkz3s XxFfB6Q/+MfQppGVtY5ufAo1444kQCMXMQugzjvaAj6NF2LY7Ah1Kcl+i9t2YoQHsnvF QJCtHQZ+TdXP3aBwweaPNvzl6DB7Od7mDRNcEIqtdx+2jUn8aNgb029C2qqj+rKbib6O hfisZkJq3dq+KXf3H1fK6XznjJrxfGpV7BcgdLGOKBRlARp0hnt8a9UhjArZRkIauFgB lOmNE7JiyZtocMMGiPRPyr2cqLT7QfpQO4A3QrKDCufD5kzOenlMaQZKFclO0VGnZbMG I/rg== Received: by 10.236.153.130 with SMTP id f2mr1319988yhk.56.1345731511026; Thu, 23 Aug 2012 07:18:31 -0700 (PDT) Received: from salusa.poochiereds.net (cpe-069-134-145-027.nc.res.rr.com. [69.134.145.27]) by mx.google.com with ESMTPS id s12sm6877154anh.2.2012.08.23.07.18.29 (version=SSLv3 cipher=OTHER); Thu, 23 Aug 2012 07:18:30 -0700 (PDT) From: Jeff Layton To: linux-cifs@vger.kernel.org Subject: [PATCH] mount.cifs: silence compiler warnings about ignoring return code Date: Thu, 23 Aug 2012 10:18:25 -0400 Message-Id: <1345731505-3491-1-git-send-email-jlayton@samba.org> X-Mailer: git-send-email 1.7.11.4 X-Gm-Message-State: ALoCoQlKBDUpouGUhpJDnbYX9rHzPvfwRP65K6rZJ7CIxrjS2Da9GuaaapkszQx57JItzUrn4N09 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org In this case we explicitly don't care what these functions return, so declare a couple of unused variables to catch the results. Signed-off-by: Jeff Layton --- mount.cifs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index f843bb4..3fd472a 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -1964,8 +1964,8 @@ restore_privs: if (dacrc) rc = rc ? rc : dacrc; } else { - setfsuid(oldfsuid); - setfsgid(oldfsgid); + uid_t __attribute__((unused)) uignore = setfsuid(oldfsuid); + gid_t __attribute__((unused)) gignore = setfsgid(oldfsgid); } return rc;