From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1758221271; bh=q5ugBWK1i0r1krt0mBNBdoQYJjK62kVLuFModvDtzCA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=rZkLFwJN/ApKQxrCN3EYLLqw+LTvAI0HY7e5WImGrHShmuIEXqS+GRCAvam5ie+36 PN2mmXtq5wSpl+FWDiCh3W1oSYaTELvyP1//G0FjCS2k6OAcxK+FOI4iiI25SvXZBc MnSplvlji3lcnULCNZ3VrXfLpbaijYI05IyhLfjdRnlp79v8/ThFh1SHvnbsHWAGMa zJLX8scvav7nCMX55Ul01hbAiUgly4ibOD+3ku8YDq11ONBv2l9yQNcbnwpcj6Hy8s ndB4qLL4ZOKmyWBGcZV/8M7uWPUt8qWTsAxHOF1HlO3il+IVzKYaI4a5D9FGZYAgcU Nqv14aAyJRbTQ== Received: from localhost.localdomain (unknown [68.183.184.174]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id C1E993127976; Thu, 18 Sep 2025 18:47:50 +0000 (UTC) From: Alviro Iskandar Setiawan To: Ammar Faiz Cc: Ahmad Gani , GNU/Weeb Mailing List , Alviro Iskandar Setiawan Subject: [PATCH gwproxy v12 2/8] gwproxy: Introduce __unused macro Date: Fri, 19 Sep 2025 01:47:24 +0700 Message-Id: <20250918184730.598305-3-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250918184730.598305-1-alviro.iskandar@gnuweeb.org> References: <20250918184730.598305-1-alviro.iskandar@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ahmad Gani Introduce __unused macro in preparation to add a new experimental feature. When the experimental feature is disabled, there will be several empty functions where their parameters are not used. It'll be useful to silence the unused variable warnings. Signed-off-by: Ahmad Gani Co-authored-by: Alviro Iskandar Setiawan Signed-off-by: Alviro Iskandar Setiawan --- src/gwproxy/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gwproxy/common.h b/src/gwproxy/common.h index 8ae6ab4..adbd2c2 100644 --- a/src/gwproxy/common.h +++ b/src/gwproxy/common.h @@ -12,6 +12,10 @@ #define unlikely(x) __builtin_expect(!!(x), 0) #endif +#ifndef __unused +#define __unused __attribute__((__unused__)) +#endif + #ifndef __cold #define __cold __attribute__((__cold__)) #endif -- Alviro Iskandar Setiawan