public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Kalavakolanu, Hema Anmisha via groups.io" <hema.anmisha.kalavakolanu=intel.com@groups.io>
To: devel@edk2.groups.io
Cc: "Kalavakolanu,
	Hema Anmisha" <hema.anmisha.kalavakolanu@intel.com>,
	Gerd Hoffmann <kraxel@redhat.com>
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	[thread overview]
Message-ID: <20241217065051.2592981-1-hema.anmisha.kalavakolanu@intel.com> (raw)

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 <kraxel@redhat.com>

Signed-off-by: Kalavakolanu Hema Anmisha <hema.anmisha.kalavakolanu@intel.com>
---
 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]
-=-=-=-=-=-=-=-=-=-=-=-



                 reply	other threads:[~2024-12-20 23:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241217065051.2592981-1-hema.anmisha.kalavakolanu@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox