GNU bug report logs - #63670
CI failure due to warning in diff.c

Previous Next

Package: diffutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Tue, 23 May 2023 16:47:02 UTC

Severity: normal

Tags: fixed

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bruno Haible <bruno <at> clisp.org>
To: 63670 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu
Subject: bug#63670: CI failure due to warning in diff.c
Date: Tue, 23 May 2023 18:46:01 +0200
Hi Paul,

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]
 1209 |        .file[1].desc = name1 ? UNOPENED : NONEXISTENT,
      |        ^
In file included from ../../../sources/diffutils/src/diff.c:22:
../../../sources/diffutils/src/diff.h:275:22: note: 'name' declared here
  275 |     char const      *name; /* File name  */
      |                      ^~~~
../../../sources/diffutils/src/diff.c:1210:8: error: missing initializer for field 'name' of 'struct file_data' [-Werror=missing-field-initializers]
 1210 |        .parent = parent };
      |        ^
In file included from ../../../sources/diffutils/src/diff.c:22:
../../../sources/diffutils/src/diff.h:275:22: note: 'name' declared here
  275 |     char const      *name; /* File name  */
      |                      ^~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:1836: diff.o] Error 1


Looks like it's caused by yesterday's commit
e8c2d02643f8e75704088cebf7f7d54966d61c09

Bruno







This bug report was last modified 2 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.