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_DBL_BLOCKED_OPENDNS, 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=1757826591; bh=2HMXtjoryp9k1CJUk8ahx4ltMDPJBP5cW12l//mUA7U=; 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=Z03+nvImbmngqtgcSJSaIJ4SGJmyvKIkjNNh15Tukx9Vs708ZMkaSRlU8NUOA12cZ /AOK2Y/VGA9xwG4Pl86j3nCh7A3/bO/0zAlei6yA7d+OcSDk/3ZfkJYC5MCJN8AR6C M1FG0oyClwnDy3RVFAFQq/x+kd1jdrQv+SI/BAPXff+Wwvb9NPIZ9mV0PO5PnAWlFq JG57uN0Bt8fQC281VnjlL3Xpeo++JS9lhBdqZudauL11rmjnDi2G2beTm5fgvURuNG TPorXKYkuCdbtkKXx87372PkpShXeDaR4avokUYtFZAXWaamKnky6zII21+FmcnszN 3SJ/9+Ad91ZRA== Received: from zero (unknown [182.253.228.107]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 5F49E31279C6; Sun, 14 Sep 2025 05:09:50 +0000 (UTC) From: Ahmad Gani To: Ammar Faizi Cc: Ahmad Gani , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH gwproxy v11 2/6] gwproxy: Define __maybe_unused macro Date: Sun, 14 Sep 2025 12:09:36 +0700 Message-ID: <20250914050943.184934-3-reyuki@gnuweeb.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250914050943.184934-1-reyuki@gnuweeb.org> References: <20250914050943.184934-1-reyuki@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Useful to reduce #ifdef guard. Link: https://lore.gnuweeb.org/gwml/CAADvAgrOqqEdjJ6gN3sq05iTBpMFAx5Ygx8PQ=TW+FisCATiMA@mail.gmail.com/ Signed-off-by: Ahmad Gani --- src/gwproxy/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gwproxy/common.h b/src/gwproxy/common.h index 8ae6ab4a31f5..aae4446a6875 100644 --- a/src/gwproxy/common.h +++ b/src/gwproxy/common.h @@ -12,6 +12,10 @@ #define unlikely(x) __builtin_expect(!!(x), 0) #endif +#ifndef __maybe_unused +#define __maybe_unused __attribute__((__unused__)) +#endif + #ifndef __cold #define __cold __attribute__((__cold__)) #endif -- Ahmad Gani