[bug #66726] cvs-1.11.23 fails to build with GCC 15

Petr Pisar <[email protected]> Tue, 28 Jan 2025 10:15:54 -0500 (EST)
Newsgroups gmane.comp.version-control.cvs.bugs
Message-ID <[email protected]>
--8323329-2002376436-1738077353=:4176957
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.nongnu.org/bugs/?66726>=0A=0A                 Su=
mmary: cvs-1.11.23 fails to build with GCC 15=0A                   Group: C=
oncurrent Versions System=0A               Submitter: petrp=0A             =
  Submitted: Tue 28 Jan 2025 03:15:50 PM UTC=0A                Category: No=
ne=0A                Severity: 3 - Normal=0A              Item Group: None=
=0A                  Status: None=0A                 Privacy: Public=0A    =
         Assigned to: None=0A             Open/Closed: Open=0A         Disc=
ussion Lock: Any=0A                 Release:=0A           Fixed Release: No=
ne=0A   Fixed Feature Release: None=0A=0A=0A    ___________________________=
____________________________=0A=0AFollow-up Comments:=0A=0A=0A-------------=
------------------------------------------=0ADate: Tue 28 Jan 2025 03:15:50=
 PM UTC By: Petr Pisar <petrp>=0AGCC 15 moved a default C language standard=
 to ISO 23. As a result=0Afunction declarations without an argument means n=
o argument. That=0Acaused a mismatch with how the functions are called. An =
example:=0A    =0A        getdate.y:76:26: error: conflicting types for =E2=
=80=98gmtime=E2=80=99; have=0A=E2=80=98struct tm *(void)=E2=80=99=0A       =
    76 | extern struct tm        *gmtime();=0A              |              =
            ^~~~~~=0A        In file included from xtime.h:23,=0A          =
               from getdate.y:46:=0A        /usr/include/time.h:132:19: not=
e: previous declaration of =E2=80=98gmtime=E2=80=99=0Awith type =E2=80=98st=
ruct tm *(const time_t *)=E2=80=99 {aka =E2=80=98struct tm *(const long int=
=0A*)=E2=80=99}=0A          132 | extern struct tm *gmtime (const time_t *_=
_timer) __THROW;=0A              |                   ^~~~~~=0A=0AThat preve=
nts from building with GCC 15 (unless a user passes an appropriate=0A-std=
=3D option in CFLAGS).=0A    =0AAlso K&R protoype syntax is deprecated and =
GCC polluted the output with=0Amany warnings like this:=0A    =0A        ge=
tdate.y: In function =E2=80=98ToSeconds=E2=80=99:=0A        getdate.y:579:1=
: warning: old-style function definition=0A[-Wold-style-definition]=0A     =
     579 | static time_t=0A              | ^~~~~~~~~=0A=0AThe attached patc=
h ports cvs to GCC 15.=0A=0A=0A=0A=0A=0A=0A    ____________________________=
___________________________=0AFile Attachments:=0A=0A=0A-------------------=
------------------------------------=0AName: cvs-1.11.23-Adapt-to-changes-i=
n-GCC-15.patch  Size: 326KiB=0A<https://file.savannah.nongnu.org/file/cvs-1=
.11.23-Adapt-to-changes-in-GCC-15.patch?file_id=3D56823>=0A=0A    AGPL NOTI=
CE=0A=0AThese attachments are served by Savane. You can download the corres=
ponding=0Asource code of Savane at=0Ahttps://savannah.nongnu.org/source/sav=
ane-85dc625814b8ab305c8a901585c95c1324ed3cf5.tar.gz=0A=0A    ______________=
_________________________________________=0A=0AReply to this item at:=0A=0A=
  <https://savannah.nongnu.org/bugs/?66726>=0A=0A__________________________=
_____________________=0AMessage sent via Savannah=0Ahttps://savannah.nongnu=
.org/=0A
--8323329-2002376436-1738077353=:4176957
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ5j0qQAKCRCqLAuaBUf3
Tl16AQClCD+eB+/jGE9Qmvd6H2FDzLzoQcTb6Z1qiMdlc4u9NwEA3KejqHw5vXUh
OD4q6BxNwLYoK1Wtv2pHjPbKj2xOwAY=
=5UKa
-----END PGP SIGNATURE-----

--8323329-2002376436-1738077353=:4176957--