#1118407 arc patch to build with latest gcc

Package:
arc
Source:
arc
Description:
archive utility based on the MSDOS ARC program
Submitter:
Hans de Goede
Date:
2025-10-19 14:59:02 UTC
Severity:
normal
#1118407#5
Date:
2025-10-19 14:52:18 UTC
From:
To:
I've been working on making Fedora's arc pkg build with the latest gcc
version which defaults to a higher C-standard (ISO C11 I think) which
requires all functions to have proper prototype declarations and no
longer allows incomplete prototypes which omit the argument list.

I'm attaching a patch which is the result of this work which I think
will be good for Debian to have too. I'm also attaching a second
patch which fixes an LTO aliasing issue which GCC also warned about.

I hope these will be useful for the Debian arc pkg.