Subject: bug#55010: closed (Re: bug#55010: Compiling from git clone)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 20 Apr 2022 16:49:01 +0000

Your bug report

#55010: Compiling from git clone

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
55010: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=55010
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#55010: Compiling from git clone
From: Paul Eggert <[email-masked]>
To: Ken Ingram <[email-masked]>
Cc: [email-masked]
Date: Wed, 20 Apr 2022 09:47:59 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

On 4/19/22 22:54, Ken Ingram wrote:
> So I guess I'm on an "old" compiler compared to 11.2.1

Yes, so let's not worry about the warning, as it suggests adding clutter 
unnecessary in modern compilers, it's easy to ignore the warnings in 
older compilers, and this is an issue only when using 
--enable-gcc-warnings or when building from git and not using 
--disable-gcc-warnings.

Subject: Compiling from git clone
From: Ken Ingram <[email-masked]>
To: [email-masked]
Date: Mon, 18 Apr 2022 14:47:39 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Making all in .
make[2]: Entering directory '/home/kingram/src/coreutils'
  CC       lib/libcoreutils_a-randperm.o
lib/randperm.c: In function 'sparse_new':
lib/randperm.c:111:1: error: function might be candidate for attribute
'malloc' if it is known to return normally
[-Werror=suggest-attribute=malloc]
 sparse_new (size_t size_hint)
 ^~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:15588: lib/libcoreutils_a-randperm.o] Error 1
make[2]: Leaving directory '/home/kingram/src/coreutils'
make[1]: *** [Makefile:21009: all-recursive] Error 1
make[1]: Leaving directory '/home/kingram/src/coreutils'
make: *** [Makefile:8267: all] Error 2