From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 5702F74003A for ; Fri, 20 Dec 2024 23:01:28 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=eleNyW4yaqbrfk7VDqBytvwY7DiEw1b4J+PXpRkp5KY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240830; t=1734735688; v=1; x=1734994886; b=UzaVmQdACXvmiHkuMyIYdTX7jCaFgaf+7dXTE/i8faIz7gvswVOEnK+Rct+3UHM0eIp0Mrba jAUjDu2hhPWdmuTDPw/Qxc2zOsSIhcM36NMTUMZEmzTz4NScbsX8he6d0rXkWuO83+UqNwaALA9 ojD1CrcRucZ2pMccBFWsY6EAaUTip1kyNXJ3oww03wG0BBjSaKnfau44Yqqx/hHwCx2zLO7N34q XdYGCL/ARy3NdGF8/wbUGBxzgA2DIqmolLz2htWDQKRw+qjbR36V/IEKRWVTd05Pem2AoqvVFPK YLO/CVQBgxWGLmZPM3QMTwy85b6FbeOBQo2356TXlpS5Q== X-Received: by 127.0.0.2 with SMTP id 1yyTYY7687511xJdrpT112Lv; Fri, 20 Dec 2024 15:01:26 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by mx.groups.io with SMTP id smtpd.web10.76142.1734418274760218937 for ; Mon, 16 Dec 2024 22:51:14 -0800 X-CSE-ConnectionGUID: XeM2M3wwT6yG80gBYs4Opw== X-CSE-MsgGUID: TcgAIdtaSbez7f/sTGhRZA== X-IronPort-AV: E=McAfee;i="6700,10204,11288"; a="34960508" X-IronPort-AV: E=Sophos;i="6.12,241,1728975600"; d="scan'208";a="34960508" X-Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2024 22:51:15 -0800 X-CSE-ConnectionGUID: Dqb5nbHlTv6Bh5JDLKGswA== X-CSE-MsgGUID: J+vcGIKUTDK/1I3e53wp3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="97895060" X-Received: from muni.iind.intel.com ([10.190.201.115]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2024 22:51:13 -0800 From: "Kalavakolanu, Hema Anmisha via groups.io" To: devel@edk2.groups.io Cc: "Kalavakolanu, Hema Anmisha" , Gerd Hoffmann Subject: [edk2-devel] [PATCH] After openssl is upgraded facing __GNUC__ safe_math.h not found issue Date: Tue, 17 Dec 2024 06:50:51 +0000 Message-Id: <20241217065051.2592981-1-hema.anmisha.kalavakolanu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 20 Dec 2024 15:01:23 -0800 Resent-From: hema.anmisha.kalavakolanu@intel.com Reply-To: devel@edk2.groups.io,hema.anmisha.kalavakolanu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: UsUZkkQsE7nPfgdkKV7z2o4Cx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=UzaVmQdA; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4880 Facing the below issue after openssl is upgraded Edk2\CryptoPkg\Library\OpensslLib\openssl\include\internal/safe_math.h(19): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' Cc: Gerd Hoffmann Signed-off-by: Kalavakolanu Hema Anmisha --- include/internal/safe_math.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/internal/safe_math.h b/include/internal/safe_math.h index be37e6ab88..ba0b18082f 100644 --- a/include/internal/safe_math.h +++ b/include/internal/safe_math.h @@ -15,9 +15,11 @@ # ifndef OPENSSL_NO_BUILTIN_OVERFLOW_CHECKING # ifdef __has_builtin -# define has(func) __has_builtin(func) -# elif __GNUC__ > 5 -# define has(func) 1 +# define has(func) __has_builtin(func) +# elif defined(__GNUC__) +# if __GNUC__ > 5 +# define has(func) 1 +# endif # endif # endif /* OPENSSL_NO_BUILTIN_OVERFLOW_CHECKING */ -- 2.26.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120926): https://edk2.groups.io/g/devel/message/120926 Mute This Topic: https://groups.io/mt/110222786/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-