From ed6e518933b7e73d0e04d5eae93a9e4d8afcdc40 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 5 Apr 2023 15:49:23 -0700 Subject: [PATCH] Disable GCC dangling-pointer warning to make build work See https://bugzilla.mozilla.org/show_bug.cgi?id=1826650 - with very recent GCC 13, nss build fails on this warning. jschanck is working on a fix, but his first cut didn't work and I really want a build done so we can get a Firefox build done. --- nss.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nss.spec b/nss.spec index f99f80a..a3347fa 100644 --- a/nss.spec +++ b/nss.spec @@ -387,6 +387,10 @@ export XCFLAGS="$XCFLAGS -Wno-error=maybe-uninitialized" # Similarly, but for gcc-11 export XCFLAGS="$XCFLAGS -Wno-array-parameter" +# aaaand gcc-133: +# https://bugzilla.mozilla.org/show_bug.cgi?id=1826650 +export XCFLAGS="$XCFLAGS -Wno-dangling-pointer" + export LDFLAGS=$RPM_LD_FLAGS export DSO_LDOPTS=$RPM_LD_FLAGS