lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build errors with GCC 14


From: Greg A. Woods
Subject: Re: Build errors with GCC 14
Date: Sat, 18 May 2024 13:07:37 -0700
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/26.3 (x86_64--netbsd) MULE/6.0 (HANACHIRUSATO)

At Sat, 18 May 2024 18:09:33 +0200, Matěj Cepl <mcepl@cepl.eu> wrote:
Subject: Build errors with GCC 14
> 
> I am maintaining Lout for OpenSUSE distros, and we are currently
> in the process of preparation for the switch to GCC 14 [1], which
> has much more stringent checks on the code and many things were
> before just warnings are now build errors ([2] and [3]). When
> build in the experiemental project [4] it produces number of
> errors and the build fails [5]

I would strongly recommend using '--std=c99' (or as necessary
'--std=c89') to compile older code with a newer compiler such as GCC-14.

It also wouldn't be wrong to add '-fpermissive' as well.

The code was written to an older standard so don't try to foist new
language features on it without very careful consideration!

You really don't have to fix innocuous warnings just because the
compiler now defaults to a newer language standard that's not entirely
backwards compatible.

Of course real bugs should be fixed and reported.

Note too that Lout's makefile has long specified '-ansi', which is of
course equivalent to '--std=c89', along with '-pedantic'.

That said perhaps you haven't noticed the latest release from June of
last year that fixes all warnings (though I've found it needs to be
adjusted to use '--std=c99' instead of '-ansi'):

     http://jeffreykingston.id.au/lout/
     http://jeffreykingston.id.au/lout/lout-3.41.tar.gz

nThere's also William Bader's work to clean up warnings and make some
fixes:

              https://github.com/william8000/lout/

I would like to see him rebase any of his changes still "necessary" onto
Jeff's 3.41 though before recommending it wholeheartedly.

-- 
                                        Greg A. Woods <gwoods@acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>     Avoncote Farms <woods@avoncote.ca>

Attachment: pgpttynjIJEOw.pgp
Description: OpenPGP Digital Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]