bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] bug#63670: CI failure due to warning in diff.c


From: Paul Eggert
Subject: [bug-diffutils] bug#63670: CI failure due to warning in diff.c
Date: Wed, 24 May 2023 10:25:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 2023-05-23 09:46, Bruno Haible wrote:

The diffutils CI reports a build failure:


   CC       diff.o
../../../sources/diffutils/src/diff.c: In function 'compare_files':
../../../sources/diffutils/src/diff.c:1209:8: error: missing initializer for 
field 'name' of 'struct file_data' [-Werror=missing-field-initializers]

I don't know how to find out the details of the diffutils CI build. However, I think the bug is probably that the build was using GCC 11.1 or 11.2, which is buggy in this area. I installed the attached patches to Gnulib to work around that problem.

If you're configuring with --enable-gcc-warnings or equivalent, it's better to use current GCC. Older versions of GCC have several problems in this area, and although I went to the trouble of working around this particular problem I doubt whether it's worth our time to worry about all false positives generated by older GCC versions, so it might be better to build with --disable-gcc-warnings on older platforms.

Attachment: 0001-manywarnings-port-better-to-GCC-11.2-and-earlier.patch
Description: Text Data

Attachment: 0002-Simplify-Wno-missing-field-initializers-checking.patch
Description: Text Data

Attachment: 0003-manywarnings-speed-up-nomfi-test.patch
Description: Text Data


reply via email to

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